On Fri, Apr 08, 2011 at 09:54:37PM +0200, Landry Breuil wrote:
> On Fri, Apr 08, 2011 at 07:53:51PM +0200, Frank Brodbeck wrote:
> > Hi,
> > 
> > lately I was reading on misc@ [1] that there's no way to remove a user
> > from secondary groups but by hand. I also searched for a PR but couldn't
> > find one. The attached diff remedies the problem:
> > 
> > # id test
> > uid=1001(test) gid=10(users) groups=10(users), 9(wsrc), 69(network),
> > 117(dialer)
> > # usermod -G wsrc,network test
> > # id test
> > uid=1001(test) gid=10(users) groups=10(users), 9(wsrc), 69(network)
> > # usermod -G wsrc,network,dialer test
> > # id test
> > uid=1001(test) gid=10(users) groups=10(users), 9(wsrc), 69(network),
> > 117(dialer)
> 
> Hmm.. please no. Don't know if it's a bug or not, but i'm very used to
> -G to _add_ groups to the existing group list for a user. If i
> understand your diff correctly, one has to list all the groups it wants
> the user to be in, whereas now you just list the groups you want to add.
> 
> [...]
> 
> So please don't change that behaviour. If you want to remove a group for
> a user, you can still edit /etc/group.
> 

Yeah, please no, this is a recipe to fuckups ...

-- 
Gilles Chehade

Reply via email to