LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-25-2010, 09:20 AM   #1
turf
Member
 
Registered: Nov 2009
Posts: 94

Rep: Reputation: 15
what to install since these commands don't work..


Code:
[root@localhost home]# useradd -D
bash: useradd: command not found
[root@localhost home]#
it seems not working
 
Old 08-25-2010, 09:22 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Have you tried `adduser` instead of `useradd`?

Which one(s) are present depends on what Linux OS it is, which you should also tell us, though it appears to be CentOS, correct?
 
Old 08-25-2010, 10:29 PM   #3
turf
Member
 
Registered: Nov 2009
Posts: 94

Original Poster
Rep: Reputation: 15
i guess i have to do ./useradd -D

in another dir..

found after doing
# which useradd
 
Old 08-28-2010, 05:47 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The CentOS commands are simply : # usr/sbin/useradd

Or : # usr/sbin/adduser

You can also do : 'su -' instead of 'su' ,
which will provide useradd, adduser in your path.
..
 
Old 09-12-2010, 06:02 AM   #5
aahiqmir
Member
 
Registered: Apr 2008
Posts: 54

Rep: Reputation: 15
Quote:
Originally Posted by turf View Post
i guess i have to do ./useradd -D

in another dir..

found after doing
# which useradd
Add the directory to ur PATH, which provides that command. like /bin/useradd.
run the command echo $PATH.
see if /bin is in ur(root) path.
 
  


Reply



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
Some Commands Don't Work dudeman41465 Linux - Software 5 01-29-2006 08:17 AM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
Why do commands work sometimes, but not others? pdmackenzie Linux - Newbie 5 10-31-2004 06:05 AM
configure, make and make install commands don't work for me Fenster Fedora 8 08-18-2004 10:58 AM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:59 PM.

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
Open Source Consulting | Domain Registration