Quoting Nicolas François ([EMAIL PROTECTED]):
> Hi,
> 
> I confirm a user can't use newgrp (or sg) to switch to a group added to
> /etc/group since its last login.  Also, this group won't be displayed by
> id, or any command using getgroups (I did not test this last one).


Well, I *do not* confirm this.

Window 1:

[EMAIL PROTECTED]:~# su - tintin
[EMAIL PROTECTED]:~$ id
uid=1000(tintin) gid=100(users) groups=100(users)
[EMAIL PROTECTED]:~$ newgrp audio
Password:
Sorry.
[EMAIL PROTECTED]:~$      


I do NOT logout from this shell and in anothe window (window 2):

[EMAIL PROTECTED]:/etc/pam.d# addgroup herge
Adding group `herge' (1006)...
Fait.
[EMAIL PROTECTED]:/etc/pam.d# adduser tintin herge
Ajout de l'utilisateur tintin au groupe herge...
Fait.



Going back to "tintin" shell in window 1:

[EMAIL PROTECTED]:~$ newgrp herge
[EMAIL PROTECTED]:~$ id
uid=1000(tintin) gid=1006(herge) groups=100(users),1006(herge)
[EMAIL PROTECTED]:~$ touch foo
[EMAIL PROTECTED]:~$ ls -la foo
-rw-r--r--  1 tintin herge 0 Mar 31 07:47 foo


So, where's the bug?



Reply via email to