$ id
uid=1000(martin) gid=1000(martin)
groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(lpadmin),108(scanner),109(admin),1000(martin)
$ newgrp games
[No password asked here!]
$ id
uid=1000(martin) gid=60(games)
groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),60(games),107(lpadmin),108(scanner),109(admin),1000(martin)
$ exit
exit
$ id
uid=1000(martin) gid=1000(martin)
groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(lpadmin),108(scanner),109(admin),1000(martin)
I am only asked for a password if I call newgrp without an argument, but that
happens on Sarge as well (which could still be considered a bug though). So what
is the difference between Sarge and Hoary you are aiming at?
This works perfectly for me on Hoary and Breezy:
$ id 4(adm), 20(dialout) ,24(cdrom) ,25(floppy) ,29(audio) ,30(dip) ,44(video) ,46(plugdev) ,107(lpadmin) ,108(scanner) ,109(admin) ,1000(martin) 4(adm), 20(dialout) ,24(cdrom) ,25(floppy) ,29(audio) ,30(dip) ,44(video) ,46(plugdev) ,60(games) ,107(lpadmin) ,108(scanner) ,109(admin) ,1000(martin) 4(adm), 20(dialout) ,24(cdrom) ,25(floppy) ,29(audio) ,30(dip) ,44(video) ,46(plugdev) ,107(lpadmin) ,108(scanner) ,109(admin) ,1000(martin)
uid=1000(martin) gid=1000(martin)
groups=
$ newgrp games
[No password asked here!]
$ id
uid=1000(martin) gid=60(games)
groups=
$ exit
exit
$ id
uid=1000(martin) gid=1000(martin)
groups=
I am only asked for a password if I call newgrp without an argument, but that
happens on Sarge as well (which could still be considered a bug though). So what
is the difference between Sarge and Hoary you are aiming at?