My file bash, and configurate for linux
File: 666 (rw-rw-rw-)
Direktori: 777 (rwxrwxrwx)
File baru: 666 - 022 = 644 (rw-r--r--)
Direktori baru: 777 - 022 = 755 (rwxr-xr-x)
umask # check the nilai umask
# 0022 # default
umask 027
# File baru: 666 - 027 = 640 (rw-r-----)
# Direktori baru: 777 - 027 = 750 (rwxr-x---)
0 – no permissions are blocked (read, write, and execute)
1 – execute permission is blocked
2 – write permission is blocked
3 – write and execute permissions are blocked
4 – read permission is blocked
5 – read and execute permissions are blocked
6 – read and write permissions are blocked
7 – all permissions are blocked (neither read, write, nor execute)
umask | Izin File Baru | Izin Direktori Baru |
---|---|---|
000 | 666 (rw-rw-rw-) | 777 (rwxrwxrwx) |
022 | 644 (rw-r–r–) | 755 (rwxr-xr-x) |
027 | 640 (rw-r—–) | 750 (rwxr-x—) |
077 | 600 (rw——-) | 700 (rwx——) |