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 |
You have to be root to add users, that program should be in /sbin or /usr/sbin, try specifying the whole path.
|
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 |
Try: locate useradd
Or try using the GUI user tool: http://www.redhat.com/docs/manuals/l...fig-users.html |
if finds it but still says it does not exist. Very confused
|
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. |
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 |
do a:
ls -l /usr/sbin/useradd |
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]# |
Try either:
Code:
/usr/sbin/usradd |
All times are GMT -5. The time now is 06:04 PM. |