LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   useradd RHEL 4? (https://www.linuxquestions.org/questions/linux-newbie-8/useradd-rhel-4-a-883866/)

brownie_cookie 06-01-2011 12:38 AM

useradd RHEL 4?
 
Hi all

Maybe a strange or easy question, but how do you add user in RHEL4?
Because this is strange:
Code:

$ man useradd
$ useradd nagios
-bash: useradd: command not found

when i search for it (manpages) i get the explaination of the command, but when i try to execute it, it doesn't work...


Thanks in advance

Brownie

evo2 06-01-2011 12:42 AM

useradd is probably in /usr/sbin which appears not to be in your path. If you su to root, your path should change to include /usr/sbin

HTH,

Evo2.

brownie_cookie 06-01-2011 12:49 AM

yes, i thought it had to do something with that.. i'm not logged in as the root (also don't have the password)...
I need to install some software, so i need that password right?
i got another question, can i use YUM to install e.g. xinetd on a RHEL 4?
or does RHEL4 have another command like YUM?

Code:

$ yum install xinetd
-bash: yum: command not found


Thanks in advance

Brownie

evo2 06-01-2011 12:56 AM

Since you have a new, unrelated question, I suggest you start a new thread.

Cheers,

Evo2.

brownie_cookie 06-01-2011 01:00 AM

done..

chrism01 06-01-2011 01:03 AM

Re qn 1; useradd would normally only be run by root and you should definitely get the local admin to do it or give you (probably sudo) rights to do so.

brownie_cookie 06-01-2011 01:11 AM

indeed, in the mean time i have the password for the root, so now i'm logged on as the root and it's working like a charm :p
didn't know those command where only for root accounts ;) makes sense though!

chrism01 06-01-2011 01:16 AM

Indeed; there's a really good reason; see the 'rm -fR /' thread ... DON'T even think of doing that as root :(

brownie_cookie 06-01-2011 01:30 AM

indeed, i really feel bad for him !!


All times are GMT -5. The time now is 11:24 AM.