LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   what to install since these commands don't work.. (https://www.linuxquestions.org/questions/red-hat-31/what-to-install-since-these-commands-dont-work-828387/)

turf 08-25-2010 09:20 AM

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

GrapefruiTgirl 08-25-2010 09:22 AM

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?

turf 08-25-2010 10:29 PM

i guess i have to do ./useradd -D

in another dir..

found after doing
# which useradd

knudfl 08-28-2010 05:47 AM

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.
..

aahiqmir 09-12-2010 06:02 AM

Quote:

Originally Posted by turf (Post 4077933)
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.


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