Dear Everyone, I would like to have a system-wide umask settings. If I create eg a directory with mkdir everything is fine, however if I create a directory using Nautilus or even Midnight Commander using Gnome Terminal the file permission settings are different from my .bashrc definition I put .bashrc and /etc/profiles the follwoing line: umask 077 I tried to put it to /etc/gdm/Xsession, I created .gnomerc but nothing. Is it even possible to set a system-wide umask settings?
On Sat, Jan 15, 2011 at 10:11 PM, Béla Vizer <bela.vizer@gmail.com> wrote:
I put .bashrc and /etc/profiles the follwoing line: umask 077 I tried to put it to /etc/gdm/Xsession, I created .gnomerc but nothing. Is it even possible to set a system-wide umask settings?
Put it in ~/.bashrc, before the following line: [ -z "$PS1" ] && return
On 16/01/11 06:22, Evangelos Foutras wrote:
On Sat, Jan 15, 2011 at 10:11 PM, Béla Vizer <bela.vizer@gmail.com> wrote:
I put .bashrc and /etc/profiles the follwoing line: umask 077 I tried to put it to /etc/gdm/Xsession, I created .gnomerc but nothing. Is it even possible to set a system-wide umask settings?
Put it in ~/.bashrc, before the following line:
[ -z "$PS1" ] && return
That will of course *not* be a system wide setting! /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus
Le dimanche 16 à 7:22, Evangelos Foutras a écrit :
On Sat, Jan 15, 2011 at 10:11 PM, Béla Vizer <bela.vizer@gmail.com> wrote:
I put .bashrc and /etc/profiles the follwoing line: umask 077 I tried to put it to /etc/gdm/Xsession, I created .gnomerc but nothing. Is it even possible to set a system-wide umask settings?
Put it in ~/.bashrc, before the following line:
[ -z "$PS1" ] && return
GNOME is launched from a user shell, and one that wouldn't read /etc/profile ? Sounds strange... Béla: have you looked into pam_umask? -- Frédéric Perrin -- http://tar-jx.bz
participants (4)
-
Béla Vizer
-
Evangelos Foutras
-
Frédéric Perrin
-
Magnus Therning