LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2004, 12:05 AM   #1
AmdMhz
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Debian, OpenSUSE
Posts: 142

Rep: Reputation: 15
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
 
Old 02-01-2004, 12:06 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
You have to be root to add users, that program should be in /sbin or /usr/sbin, try specifying the whole path.
 
Old 02-01-2004, 12:10 AM   #3
AmdMhz
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Debian, OpenSUSE
Posts: 142

Original Poster
Rep: Reputation: 15
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
 
Old 02-01-2004, 12:23 AM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Try: locate useradd

Or try using the GUI user tool:

http://www.redhat.com/docs/manuals/l...fig-users.html
 
Old 02-01-2004, 12:28 AM   #5
AmdMhz
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Debian, OpenSUSE
Posts: 142

Original Poster
Rep: Reputation: 15
if finds it but still says it does not exist. Very confused
 
Old 02-01-2004, 12:31 AM   #6
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
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.
 
Old 02-01-2004, 12:34 AM   #7
AmdMhz
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Debian, OpenSUSE
Posts: 142

Original Poster
Rep: Reputation: 15
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
 
Old 02-01-2004, 12:44 AM   #8
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
do a:
ls -l /usr/sbin/useradd
 
Old 02-01-2004, 12:47 AM   #9
AmdMhz
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Debian, OpenSUSE
Posts: 142

Original Poster
Rep: Reputation: 15
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]#
 
Old 02-01-2004, 01:25 PM   #10
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Try either:
Code:
/usr/sbin/usradd

or 

cd /usr/sbin
./useradd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add new users dweeb Linux - Newbie 5 06-22-2005 05:03 AM
I can't add users to "samba users" in control center g_jakes Linux - Security 3 05-20-2005 03:10 PM
can't add users to "samba users" in control center g_jakes Linux - Networking 1 05-20-2005 02:28 PM
can't add users to "samba users" in control center g_jakes Linux - Wireless Networking 1 05-20-2005 02:27 PM
can't add users harikannanmk Linux - General 0 12-12-2003 11:35 PM


All times are GMT -5. The time now is 06:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration