Apr 18, 2006 #1 hendnov Technical User Joined Feb 27, 2006 Messages 73 Location AU Hi guys, just wondering what UMASK = "022" means ?? what I know is like 777 means rwxrwxrwx 775 means rwxrwxr-x what about 022?? Cheers
Hi guys, just wondering what UMASK = "022" means ?? what I know is like 777 means rwxrwxrwx 775 means rwxrwxr-x what about 022?? Cheers
Apr 18, 2006 #2 feherke Programmer Joined Aug 5, 2002 Messages 9,541 Location RO Hi man umask said: umask sets the umask to mask & 0777. Click to expand... So [tt]umask[/tt] 022 means permission 755. Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Hi man umask said: umask sets the umask to mask & 0777. Click to expand... So [tt]umask[/tt] 022 means permission 755. Feherke. http://rootshell.be/~feherke/
Apr 18, 2006 #3 p5wizard IS-IT--Management Joined Apr 18, 2005 Messages 3,165 Location BE If I'm not mistaken: a file is created with 666 minus umask value so 666 minus 022 becomes 644 -rw-r--r-- a dir is created with 777 minus umask value so 777 minus 022 becomes 755 drwx-r-xr-x HTH, p5wizard Upvote 0 Downvote
If I'm not mistaken: a file is created with 666 minus umask value so 666 minus 022 becomes 644 -rw-r--r-- a dir is created with 777 minus umask value so 777 minus 022 becomes 755 drwx-r-xr-x HTH, p5wizard