I have tried to setup umask for my gnome desktop in .gnomerc and .xprofile without success. I also have a debian box and there it works. Reproducible: Always Steps to Reproduce: 1. $ echo 'umask 077' > ~/.gnomerc 2. restart gnome 3. $ umask or if I create a file with nautilus. Actual Results: files are created with mask 022 Expected Results: files created with mask 077
as far as I remember, setting stuff in ~/.gnomerc is deprecated.
how do you start your X btw ?
I start X with xdm in /etc/init.d/ I am using gdm.
which version of gdm ?
I haven't tried this for almost a year. I'll try asap. Nowadays I am using gdm 2.20.9-r1. Is it already working?
Running gnome-session-2.22.3-r1. Still the same. Indeed a little bit weird. I set up umask to 077 to try. I logged out and logged in. Command line umask was 022. When I 'touched' a file and a dir in gnome-terminal, i got -rwxr--r-- and -rwxr-xr-x. When I created a file and a dir from nautilus, i got -rwxr--r-- and drwx------. I changed the umask to 011 again. I logged out and logged in. Command line umask was 022. When I 'touched' a file and a dir in gnome-terminal, i got -rwxr--r-- and -rwxr-xr-x again. When I created a file and a dir from nautilus, i got -rwxr--r-- and drwx------ again.
maybe gdm is simply ignoring the Gnome session content. I've always been troubled by what looked like a double initialization.
ok after reading Xsession stuff the other day, .gnomerc is only sourced by other login manager than gdm, it appears gdm (at least 2.20 series and older) is using its own Xsession script which doesn't source .gnomerc. For stuff like umask, you can achieve the same functionality by using .profile or .xprofile which is supposed to be cross-desktop. This bug reminds me of bug #201625 and the defunct #25273.
* gnome version 2.24.3 $ pwd /home/eduardo $ cat .xprofile touch /home/eduardo/dot_xprofile umask 012 $ cat .profile touch /home/eduardo/dot_profile umask 023 $ cat .gnomerc touch /home/eduardo/dot_gnomerc umask 034 After reloading, I get the dot_xprofile and the dot_profile files created. However, $ umask 0022 :-(
moving to x11 and fdo since what we actually need is a discussion for a unified X startup setup. This is at least the 5th bug I see about this matter this year so we should really do something about it.
This is probably obsolete now with current gnome stable