본문 바로가기
OS-OE Knowledge/Linux-Unix KB

Common umask settings

by 스쳐가는인연 2010. 4. 28.
Common umask settings

umask 002 / umask u=rwx,g=rwx,o=rx
Allow read/execute for everyone, only allow write by user and group

umask 022 / umask u=rwx,g=rx,o=rx
Allow read/execute for everyone, only allow write by user

umask 027 / umask u=rwx,g=rx,o=
Allow read/execute for user and group, only allow write by user

umask 077 / umask u=rwx,g=,o=
Allow read/write/execute for user, deny everyone else.

umask 777 / umask u=,g=,o=
You are root, or
You are more paranoid than I, or
You don't even trust yourself.

출처 http://www.ifokr.org/bri/presentations/lfnw-2003/mgp00027.txt

file - 640
directory - 750
반응형