umask + newgrp in ~/.bashrc creates bash processes in infinite loop.
Luciano Rocha
strange at nsk.no-ip.org
Wed Apr 9 09:14:23 UTC 2008
On Wed, Apr 09, 2008 at 10:46:11AM +0200, Michal wrote:
>
> > Hi Mikal,
>
> > What exactly are you trying to do in .bashrc? You don't
> > explain that to us. It would help to know why you are doing these
> > things. Later,
>
>
> I would like to switch to supplementary group, just after log in.
newgrp spawns a new shell, that will execute newgrp, spawning a new
shell, that will execute newgrp, ... You get the idea.
Either change the primary group for the user in /etc/passwd, or make
newgrp conditional:
[ $(id -gn) = svn ] || exec newgrp svn
--
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080409/598c0fe8/attachment-0001.sig>
More information about the fedora-list
mailing list