GNOME Bugzilla – Bug 459734
umask 002 not being applied for new directories
Last modified: 2018-08-03 17:52:02 UTC
Please describe the problem: I have changed the umask to 002 in /etc/profile and ~/.profile and when creating new directories it doesn't set the g+w bit permission. I read about nautilus having a similar problem before. I tried on nautilus and for me is working perfectly. Also works as expected from a terminal window. Steps to reproduce: 1. Change the umask for your user or even the system. Edit /etc/profile and ~/.profile and set umask to 002. 2. I rebooted the system to be sure the changes were applied 3. Goto to a directory and click in New, Directory from the contextual menu. 4. Enter any name and check that the dir permission g+w bit is set. Actual results: My dir permissions are 755 (umask 022) Expected results: The dir permissions should be 775 (umask 002) Does this happen every time? Yes Other information:
Open an x-terminal (gnome-terminal) and issue the command umask with no options. Can you verify that your umask setting of .profile is still valid in the desktop context ? Please check /etc/environment and ~/.bashrc and watch out for artefacts like ~/.bash_profile.
Hi!! I have the same issue with Nautilus. If I create a file, or directory from the terminal, it is created with correct permissions. However, every time I try to create from Nautilus, the file is created with 755 permissions, no matter what umask says. The problem is from Nautilus only (I think), because with terminal, and other file managers (Konqueror, Thunar), they read and apply my umask conf. I also tried and rechecked the location of umask command (.bashrc, .bash_profile, and so on) with same results. Hope someone could fix it. Regards!!
This could be related to bug #535124 if gnome-commander uses gio too.
Well not yet, gcmd is planned to switch to gio, but currently we are still at GnomeVFS
I had the same problem. I resolved it by creating the file .gnomerc in my home directory with the appropriate umask command. I wanted to have nautilus create directories with the permissions owner=rwx group=rwx and others=rx. So what I did was: cd /home/user vi .gnomerc then in this file I put: umask 002 save that and restart the session. I believe all GUI programs should now use the umask 002. Hope this is helpful to someone
Hey!! Thanks a lot Banio. That works like a charm for me. Thanks again!!
I have just found the same bug while trying to set umask to 006. I have been able to make gnome set umask to 006 by setting it in ~/.profile, but Gnome Commander still makes directories with wrong permissions (that is, group cannot write to directory). Example: I press F7 and create directory named "a". then, if I do an "ls -lad a" I get: kurgan@vongola:~$ ls -lad a drwxr-x--x 2 kurgan kurgan 4096 2008-11-15 01:35 a I think that with a 006 umask, I should get: kurgan@vongola:~$ ls -lad a drwxrwx--x 2 kurgan kurgan 4096 2008-11-15 01:36 a Which is what I get if I make the directory in a console, or by using the Gnome file browser.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-commander/issues/11.