Problem with useradd and passwd

Ken Dyke ken_i_m at elegantinnovations.net
Thu Oct 31 11:15:16 PST 2002


On Thu, 2002-10-31 at 12:06, Eran wrote:
> Hi,
> 
> When I planned to install all software as an unprivileged user (Please see it on the page 29 in the lfs-book), I typed the command below:
> 
> useradd -s /bin/bash -m lfs &&
> passwd lfs
> 
> An error message appeared on my computer screen and stated that useradd was not found. Also passwd was not found.
> 
> useradd and passwd are part of the shadow-4.0.3 package and both useradd and passwd dynamically link to the library libcrypt.so.1, but I build a basic linux system using static linking only according to the instructions of the lfs-book! How come?
> 
> What will I do now please? Should I do something important or should I ignore it and continue building a basic linux system?
> 
> Your help would be greatly appreciated.

You need to be root to useradd.  If you su /sbin is probably not part of
you $PATH.  Thus, if you su give full path for command /sbin/useradd

-- 
I think, therefore, ken_i_m
Chief Gadgeteer,
Elegant Innovations
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20021031/b8ac7bb6/attachment.sig>


More information about the lfs-support mailing list