[Clfs-dev] Section 10.21 Util Linux tests + 10.24 Coreutils

Martin Ward macros_the_black at ntlworld.com
Sun Nov 17 10:12:53 PST 2013


HiEveryone

|1.
The commands
useradd nobody && chown -Rv nobody . && su nobody -s /bin/bash -c 
"PATH=$PATH make -k check" ; userdel nobody|

didn't work for me, probably because i don't have a nobody group

but what i did was  to move the commands in sec 10.24 coreutils

echo "dummy1:x:1000:" >> /etc/group
echo "dummy2:x:1001:dummy" >> /etc/group
echo "dummy:x:1000:1000::/root:/bin/bash" >> /etc/passwd

to 10.21

then
chown|-Rv dummy
and run the tests|
||su dummy -s /bin/bash -c "PATH=$PATH make -k check"

then perhaps add a word don't remove these users and groups we will make use of them in coreutils tests

obviously then delete bit in 10.24 of adding the users/groups

and keep the text after testing remove the users/groups created earlier
||
||sed -i '/dummy/d' /etc/passwd /etc/group

||

2. Coreutils Sec 10.24

The variable

SUBDIRS= in the root tests
make NON_ROOT_USERNAME=dummy SUBDIRS= check-root
is not needed anymore has been fixed in the Makefile

cheers

Martin




More information about the Clfs-dev mailing list