Umask Permission Question
I am doing an experiment with umask. I have set umask 000 in .bash_profile but when I create a new file using a login shell the permissions are rw-rw-rw-
Can anyone explain why this happened? How could I make the default permissions of new files rwxrwxrwx? Thanks for any help. |
Hi,
Try to add umask to .bashrc file. |
I believe the default permission for any file created is 666
so umask 000 would give u 666, which is rw_rw_rw |
umask is better in /etc/profile and rwxrwxrwx will be only for directories. rw-rw-rw- for files.
|
All times are GMT -5. The time now is 10:34 PM. |