New makefile nitpick manuel at
Fri Sep 15 13:22:21 PDT 2006

El Viernes, 15 de Septiembre de 2006 22:04, George Boudreau escribió:
> This 'should' do the trick
> <YOURUSERNAME>   ALL = /usr/sbin/useradd, /usr/sbi/groupadd

Don't work. I have this line:

<MyUser>  ALL=(ALL) NOPASSWD: ALL,/usr/sbin/useradd,/usr/sbin/groupadd


macana at sandbox:~$ sudo useradd
sudo: useradd: command not found

This other works

macana at sandbox:~$ PATH=$PATH:/usr/sbin sudo useradd
Usage: useradd [-u uid [-o]] [-g group] [-G group,...]
               [-d home] [-s shell] [-c comment] [-m [-k template]]
               [-f inactive] [-e expire]
       useradd -D [-g group] [-b base] [-s shell]
               [-f inactive] [-e expire]

no matter if I have the above line or simply


I can't find a way to force sudo to use the root PATH except via "sudo -i", 
but that don't will work into a script, IMHO.

Do you have /sbin and /usr/sbin in you builder user PATH?

Manuel Canales Esparcia
Usuario de LFS nº2886:
LFS en castellano:

More information about the alfs-discuss mailing list