LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Umask Permission Question (https://www.linuxquestions.org/questions/linux-newbie-8/umask-permission-question-861384/)

sublime188 02-08-2011 06:27 AM

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.

goodhombre 02-08-2011 07:12 AM

Hi,

Try to add umask to .bashrc file.

BeyondSora 02-08-2011 07:18 AM

I believe the default permission for any file created is 666
so umask 000 would give u 666, which is rw_rw_rw

Mr. Alex 02-08-2011 08:52 AM

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.