LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cant add users...?? Help (https://www.linuxquestions.org/questions/linux-software-2/cant-add-users-help-140888/)

AmdMhz 01-31-2004 11:05 PM

cant add users...?? Help
 
Guys... I am a newbie at Red Hat and want to get in the linux scene.. I know a little unix but that is about all. Anyway I am trying to add users in the command base and everytime I type useradd I get this:

bash: useradd: command not found

Please help as I have no clue what is wrong

Thanks

Amdmhz

jtshaw 01-31-2004 11:06 PM

You have to be root to add users, that program should be in /sbin or /usr/sbin, try specifying the whole path.

AmdMhz 01-31-2004 11:10 PM

cant create users
 
[root@localhost sbin]# useradd kathy
bash: useradd: command not found
[root@localhost sbin]#

Still get this? no matter what dir I am in

crabboy 01-31-2004 11:23 PM

Try: locate useradd

Or try using the GUI user tool:

http://www.redhat.com/docs/manuals/l...fig-users.html

AmdMhz 01-31-2004 11:28 PM

if finds it but still says it does not exist. Very confused

crabboy 01-31-2004 11:31 PM

Have you tried typing the absolute path to useradd?

like

/usr//sbin/useradd

Post the output of the locate useradd if that does not work.

AmdMhz 01-31-2004 11:34 PM

still nothing.. Here is the info you requested.

[root@localhost /]# locate useradd
/etc/default/useradd
/usr/sbin/useradd
/usr/sbin/luseradd
/usr/share/doc/samba-2.2.7a/LDAP/smbldap-tools/smbldap-useradd.pl
/usr/share/man/man8/useradd.8.gz
/usr/share/man/fr/man8/useradd.8.gz
/usr/share/man/id/man8/useradd.8.gz
/usr/share/man/it/man8/useradd.8.gz
/usr/share/man/ja/man8/useradd.8.gz
/usr/share/man/pl/man8/useradd.8.gz
[root@localhost /]#


Thanks

crabboy 01-31-2004 11:44 PM

do a:
ls -l /usr/sbin/useradd

AmdMhz 01-31-2004 11:47 PM

this is what I get from that command:

[root@localhost /]# ls -l /usr/sbin/useradd
-rwxr-xr-x 1 root root 56088 Feb 12 2003 /usr/sbin/useradd
[root@localhost /]# useradd kathy
bash: useradd: command not found
[root@localhost /]# cd /usr/sbin/useradd
bash: cd: /usr/sbin/useradd: Not a directory
[root@localhost /]# cd /usr/sbin
[root@localhost sbin]# useradd kathy
bash: useradd: command not found
[root@localhost sbin]#

crabboy 02-01-2004 12:25 PM

Try either:
Code:

/usr/sbin/usradd

or

cd /usr/sbin
./useradd



All times are GMT -5. The time now is 06:04 PM.