linux_aria

My file bash, and configurate for linux


Project maintained by ariafatah0711 Hosted on GitHub Pages — Theme by mattgraham

umask

Cara Kerja

command

umask # check the nilai umask
# 0022 # default

umask 027
# File baru: 666 - 027 = 640 (rw-r-----)
# Direktori baru: 777 - 027 = 750 (rwxr-x---)

different

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)

contoh

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——)