FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 04-09-2008, 08:46 AM
Michal
 
Default umask + newgrp in ~/.bashrc creates bash processes in infinite loop.

> 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.

Regards,
Michal

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 04-09-2008, 09:14 AM
Luciano Rocha
 
Default umask + newgrp in ~/.bashrc creates bash processes in infinite loop.

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
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 05:39 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org