On Tue, Jun 10, 2008 at 9:29 PM, Michael Lynch <[EMAIL PROTECTED]> wrote:
> Im trying to learn how to use Linux Command line
>
>
> How come when I try the command "useradd"
> bash returns
>
> bash: useradd: command not found
>
Because the command is located at /usr/sbin/useradd and /usr/sbin is
not in your default search path, which defines where the shell looks
for commands when you give them by name. You can learn what your
path is by
$ echo $PATH
Only root has the privilege of adding users, so the command wouldn't
work for you as an ordinary unprivileged user.
Best to use the "sudo" command. (Super User Do)
$ sudo /usr/sbin/useradd
Password: (asks for _your_ password)
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie