plo
August 12th, 2009, 07:53 PM
Hi!
Questions in short:
1.Could changing umask in /etc/profile to 007 (default 0022) cause any problems?
2.Would it possibly break something in the system "structure" or cause security risks?
3.Why is default umask 0022 (giving default file permission to "others" to read files in the home directory?
4. The system lists 4 digits in umask but I can only find reference to 3 digits?
One of the reference links in the sticky Ubuntu:Security says at the bottom that it's OK with umask 002 if you maintain a strict group handling, but ...
Background: I am setting up a new system at home. Me and my girlfriend will share it with separate user accounts.
I have mounted a separate disk under /mnt/Shared for us to store shared data (photos, economy...).
First I created a new group with both of us as members and then:
chgrp -R newgroup /mnt/Shared
chmod -R 770 /mnt/Shared
chmod -R g+s /mnt/Shared
this basically works but when adding new files the other user does not get write rights to the new files.
Then I discovered the umask command.
Changing the default to 007 would fix this (right?) and also keeping the home-directory private
(not that that's needed in this specific case, but for reference).
Thanks /Lars
Questions in short:
1.Could changing umask in /etc/profile to 007 (default 0022) cause any problems?
2.Would it possibly break something in the system "structure" or cause security risks?
3.Why is default umask 0022 (giving default file permission to "others" to read files in the home directory?
4. The system lists 4 digits in umask but I can only find reference to 3 digits?
One of the reference links in the sticky Ubuntu:Security says at the bottom that it's OK with umask 002 if you maintain a strict group handling, but ...
Background: I am setting up a new system at home. Me and my girlfriend will share it with separate user accounts.
I have mounted a separate disk under /mnt/Shared for us to store shared data (photos, economy...).
First I created a new group with both of us as members and then:
chgrp -R newgroup /mnt/Shared
chmod -R 770 /mnt/Shared
chmod -R g+s /mnt/Shared
this basically works but when adding new files the other user does not get write rights to the new files.
Then I discovered the umask command.
Changing the default to 007 would fix this (right?) and also keeping the home-directory private
(not that that's needed in this specific case, but for reference).
Thanks /Lars