[Pkg-shadow-devel] Bug#731662: newgrp: can not update the current real group ID
Osamu Aoki
osamu at debian.org
Sun Dec 8 01:05:34 UTC 2013
Package: login
Version: 1:4.1.5.1-1
Severity: normal
Under GNOME DE, I can not change the current group ID with "newgrp"
Neither gid= nor groups= are updated by newgrp. Only login updates
groups=...
This is not what I expected from the manpage. I think it used to work.
This may be a new feature under some DE (with PAM) ,... then we need to
update manpage of newgrp with some reminder.
(I was reminded of this for my previous sbuild wiki page update by
Reuben Thomas)
Here is a simple test case using the ntp group:
$ sudo adduser osamu ntp
Adding user `osamu' to group `ntp' ...
Adding user osamu to group ntp
Done.
$ grep ntp /etc/group
ntp:x:140:osamu
$ newgrp -
osamu at goofy:~$ id
uid=1000(osamu) gid=1000(osamu) groups=1000(osamu),7(lp),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(bluetooth),109(lpadmin),111(netdev),116(fuse),129(sbuild),144(wireshark),999(bumblebee),9999(buildd-ddp)
osamu at goofy:~$ logout
$ newgrp
$ id
uid=1000(osamu) gid=1000(osamu) groups=1000(osamu),7(lp),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(bluetooth),109(lpadmin),111(netdev),116(fuse),129(sbuild),144(wireshark),999(bumblebee),9999(buildd-ddp)
osamu at goofy:~$ sudo login
goofy login: osamu
Password:
Last login: Sun Dec 8 09:43:40 JST 2013 on pts/1
Linux goofy 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64
... (skip)
osamu at goofy:~$ id
uid=1000(osamu) gid=1000(osamu) groups=1000(osamu),7(lp),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(bluetooth),109(lpadmin),111(netdev),116(fuse),129(sbuild),140(ntp),144(wireshark),999(bumblebee),9999(buildd-ddp)
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages login depends on:
ii libc6 2.17-97
ii libpam-modules 1.1.3-10
ii libpam-runtime 1.1.3-10
ii libpam0g 1.1.3-10
login recommends no packages.
login suggests no packages.
-- no debconf information
More information about the Pkg-shadow-devel
mailing list