ii passwd 1:4.13+dfsg1-4ubuntu3.2 amd64 change and administer password and group data
+ apt-get -q install -y libnss-extrausers
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
libc6-i386
The following NEW packages will be installed:
libnss-extrausers
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.2 kB of archives.
After this operation, 55.3 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 libnss-extrausers amd64 0.6-5 [13.2 kB]
Fetched 13.2 kB in 0s (345 kB/s)
Selecting previously unselected package libnss-extrausers.
(Reading database ... 34405 files and directories currently installed.)
Preparing to unpack .../libnss-extrausers_0.6-5_amd64.deb ...
Unpacking libnss-extrausers (0.6-5) ...
Setting up libnss-extrausers (0.6-5) ...
Processing triggers for libc-bin (2.39-0ubuntu8.2) ...
Scanning processes...
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
+ sed -i -r '/^(passwd|group|shadow|gshadow)/ s/$/ extrausers/' /etc/nsswitch.conf
+ groupadd etcgroup
+ useradd --groups etcgroup etcuser
+ id etcuser
+ grep etcgroup
uid=1001(etcuser) gid=1002(etcuser) groups=1002(etcuser),1001(etcgroup)
+ groupadd etcgroup2
+ usermod --groups etcgroup2 etcuser
+ id etcuser
+ grep etcgroup2
uid=1001(etcuser) gid=1002(etcuser) groups=1002(etcuser),1003(etcgroup2)
+ useradd --groups nullgroup etcuser
useradd: group 'nullgroup' does not exist
+ echo Successfully rejected invalid group
Successfully rejected invalid group
++ ls /var/lib/extrausers
+ test '!' ''
+ groupadd --extrausers extragroup
ENTER EXTRAUSERS_GROUP_FILEEXIT EXTRAUSERS_GROUP_FILEENTER EXTRAUSERS_SHADOWGROUP_FILEEXIT EXTRAUSERS_SHADOWGROUP_FILE+ useradd --extrausers --groups extragroup extrauser
+ id extrauser
+ grep extragroup
uid=1002(extrauser) gid=1005(extrauser) groups=1005(extrauser),1004(extragroup)
+ useradd --extrausers extrauser2
+ id extrauser2
uid=1003(extrauser2) gid=1006(extrauser2) groups=1006(extrauser2)
+ mv /etc /etc-rw
+ mkdir /etc
+ mount -o bind,ro /etc-rw /etc
+ groupadd --extrausers extragroup2
ENTER EXTRAUSERS_GROUP_FILEEXIT EXTRAUSERS_GROUP_FILEENTER EXTRAUSERS_SHADOWGROUP_FILEEXIT EXTRAUSERS_SHADOWGROUP_FILE+ useradd --extrausers --groups extragroup2 extrauser3
+ id extrauser3
+ grep extragroup2
uid=1004(extrauser3) gid=1008(extrauser3) groups=1008(extrauser3),1007(extragroup2)
Verification done:
ii passwd 1:4.13+ dfsg1-4ubuntu3. 2 amd64 change and administer password and group data archive. ubuntu. com/ubuntu noble/universe amd64 libnss-extrausers amd64 0.6-5 [13.2 kB] extrausers_ 0.6-5_amd64. deb ...
+ apt-get -q install -y libnss-extrausers
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
libc6-i386
The following NEW packages will be installed:
libnss-extrausers
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.2 kB of archives.
After this operation, 55.3 kB of additional disk space will be used.
Get:1 http://
Fetched 13.2 kB in 0s (345 kB/s)
Selecting previously unselected package libnss-extrausers.
(Reading database ... 34405 files and directories currently installed.)
Preparing to unpack .../libnss-
Unpacking libnss-extrausers (0.6-5) ...
Setting up libnss-extrausers (0.6-5) ...
Processing triggers for libc-bin (2.39-0ubuntu8.2) ...
Scanning processes...
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host. group|shadow| gshadow) / s/$/ extrausers/' /etc/nsswitch.conf 1002(etcuser) ,1001(etcgroup) 1002(etcuser) ,1003(etcgroup2 ) GROUP_FILEEXIT EXTRAUSERS_ GROUP_FILEENTER EXTRAUSERS_ SHADOWGROUP_ FILEEXIT EXTRAUSERS_ SHADOWGROUP_ FILE+ useradd --extrausers --groups extragroup extrauser 1005(extrauser) ,1004(extragrou p) extrauser2) gid=1006( extrauser2) groups= 1006(extrauser2 ) GROUP_FILEEXIT EXTRAUSERS_ GROUP_FILEENTER EXTRAUSERS_ SHADOWGROUP_ FILEEXIT EXTRAUSERS_ SHADOWGROUP_ FILE+ useradd --extrausers --groups extragroup2 extrauser3 extrauser3) gid=1008( extrauser3) groups= 1008(extrauser3 ),1007( extragroup2)
+ sed -i -r '/^(passwd|
+ groupadd etcgroup
+ useradd --groups etcgroup etcuser
+ id etcuser
+ grep etcgroup
uid=1001(etcuser) gid=1002(etcuser) groups=
+ groupadd etcgroup2
+ usermod --groups etcgroup2 etcuser
+ id etcuser
+ grep etcgroup2
uid=1001(etcuser) gid=1002(etcuser) groups=
+ useradd --groups nullgroup etcuser
useradd: group 'nullgroup' does not exist
+ echo Successfully rejected invalid group
Successfully rejected invalid group
++ ls /var/lib/extrausers
+ test '!' ''
+ groupadd --extrausers extragroup
ENTER EXTRAUSERS_
+ id extrauser
+ grep extragroup
uid=1002(extrauser) gid=1005(extrauser) groups=
+ useradd --extrausers extrauser2
+ id extrauser2
uid=1003(
+ mv /etc /etc-rw
+ mkdir /etc
+ mount -o bind,ro /etc-rw /etc
+ groupadd --extrausers extragroup2
ENTER EXTRAUSERS_
+ id extrauser3
+ grep extragroup2
uid=1004(