Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have for many years on Unix and Linux systems as default set filsystem permissions and access rights to read and write for user (i.e. myself), and only read permissions for group and others. In the case of directories everyone have got the execute permission, but the write permission has still been restricted to user. (Usually I am using the chmod command with octal option 644 for files and 755 for directories.)

I have not had any issues with this before, but recently (I assume since Ubuntu 11.10) I have found that Ubuntu by default gives the write permission to group for newly created (and downloaded) files and directories.

Why does group get write permissions in Ubuntu? Is this not an integrity issue on a multi-user system?

How to change the default system settings for access rights in case of creation of new files and directories?

share|improve this question
    
Given that Ubuntu create a group for each user, to which belong only that user, it do not seem a so big problem. –  enzotib Jan 14 '12 at 13:22

2 Answers 2

up vote 3 down vote accepted

For the reason behind the change in permissions see Here

To change the default umask either set umask 022 in ~/.profile or /etc/profile

share|improve this answer

On Ubuntu 11.x for all users you should check /etc/login.defs.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.