Results 1 to 3 of 3
Hello there
I am running Fedora core 10,non comercial under a VMachine
As I know any new created file has pernissions set to 666 - umask and a folder 777 ...
- 02-25-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 7
umask 666 vs 777 weird behaviour in Fedora Core 10
Hello there
I am running Fedora core 10,non comercial under a VMachine
As I know any new created file has pernissions set to 666 - umask and a folder 777 - umask
But take a look at these :
I had to see for myself if it was true and i have created files named umask0xxx; the xxx standing for the umask set at each moment and then I "ls -l >>umask_all"
See that for umask0111, 123, 224 it looks like chmod is 777 - xxx not 666 -xxx
Only the last file umask0666 had chmod resulted from 666 - 666 why ???????
And in adittion I am able to " vi umask_all" and to " ls -l >> umaks_all" even if the file "umask_all" has "- --- --- ---" = 000
I am logged as gigi: x:0:0 , equal to root but not su, nor root
here are my calculations for what should result from 666 - xxx and 777 - xxx
I can read umask_all with vi even if it has --- --- --- or 000Code:666 - 224 = 442 = rw- rw- -w- 777 - 224 = 553 = r-- r-- -w- 666 - 022 = 644 = rw- r-- r-- 777 - 022 = 755 = rw- r-- r-- 666 - 666 = 000 = --- --- --- 777 - 666 = 111 = r-- r-- r-- 666 - 123 = 543 = r-- r-- -w- 777 - 123 = 654 = rw- r-- r-- 666 - 111 = 555 = r-- r-- r-- 777 - 111 = 666 = rw- rw- rw- 666 - 000 = 666 = rw- rw- rw 777 - 000 = 777 = rw- rw- rw- ls -l umask0* >>umask_all total 24 -rw-rw-rw- 1 root root 7 2009-02-25 13:19 umask0000 OK (666 and 777) -rw-rw-rw- 1 root root 9 2009-02-25 13:21 umask0111 777 wins -rw-r--r-- 1 root root 7 2009-02-25 13:22 umask0123 777 wins -r--r---w- 1 root root 120 2009-02-25 13:31 umask0224 777 wins ---------- 1 root root 9 2009-02-25 13:41 umask0666 666 wins ---------- 1 root root 980 2009-02-25 13:54 umask_all
- 02-26-2009 #2Linux Newbie
- Join Date
- Feb 2009
- Posts
- 99
in linux , every file create can not get execute permission by default.
- 02-26-2009 #3Just Joined!
- Join Date
- Feb 2009
- Posts
- 7


Reply With Quote
