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

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


On 17/11/13 20:00, William Harrington wrote:
>
> On Nov 17, 2013, at 12:12 PM, Martin Ward wrote:
>
>> useradd nobody && chown -Rv nobody . && su nobody -s /bin/bash -c 
>> "PATH=$PATH make -k check" ; userdel nobody|
>
> Odd with shadow useradd, it's supposed to create a group of the same 
> name as the user by default, at least it does when not giving  a 
> groupid. Unless I'm missing something.
>
> I think it is best to do it the way you did it and create the dummy 
> user and groups at final-system coreutils to util-linux and keep them 
> till coreutils and then rm them after the tests.
>
> Will look at this tomorrow when I have more time.
>
> Thanks for the input.
>
> Sincerely,
>
> William Harrington
>
>
>
Hi William

hmm, you might be right there, as i think i already had a user called 
nobody, so it didn't create the group

however i like my solution better, seems a bit more elegant

martin



More information about the Clfs-dev mailing list