New makefile nitpick

George Boudreau georgeb at linuxfromscratch.org
Fri Sep 15 13:04:34 PDT 2006


M.Canales.es wrote:
> First try doing a build failed with:
> 
>  Building target 021-addinguser
> /bin/sh: groupadd: command not found
> /bin/sh: useradd: command not found
> make[2]: *** [021-addinguser] Error 127
> make[2]: Leaving directory `/mnt/build_dir/jhalfs'
> make[1]: *** [mk_SETUP] Error 2
> make[1]: Leaving directory `/mnt/build_dir/jhalfs'
> 
> I think that that is due my builder user not having /sbin and /usr/sbin in 
> their path.
> 
> How can that be fixed via  /etc/sudoers? I think that is something related 
> with the "path_info" flag, but I don't know well yet the sudoers sintax.
> 
This 'should' do the trick
<YOURUSERNAME>   ALL = /usr/sbin/useradd, /usr/sbi/groupadd

http://www.gratisoft.us/sudo/man/sudoers.html



More information about the alfs-discuss mailing list