LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2011, 01:38 AM   #1
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
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

Last edited by brownie_cookie; 06-01-2011 at 01:40 AM.
 
Old 06-01-2011, 01:42 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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.
 
Old 06-01-2011, 01:49 AM   #3
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
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

Last edited by brownie_cookie; 06-01-2011 at 01:51 AM.
 
Old 06-01-2011, 01:56 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Since you have a new, unrelated question, I suggest you start a new thread.

Cheers,

Evo2.
 
Old 06-01-2011, 02:00 AM   #5
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
done..
 
Old 06-01-2011, 02:03 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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.
 
1 members found this post helpful.
Old 06-01-2011, 02:11 AM   #7
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
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
didn't know those command where only for root accounts makes sense though!
 
Old 06-01-2011, 02:16 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Indeed; there's a really good reason; see the 'rm -fR /' thread ... DON'T even think of doing that as root
 
Old 06-01-2011, 02:30 AM   #9
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
indeed, i really feel bad for him !!
 
  


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
smbldap-useradd error on rhel 3, openldap 2.0.27, smbldap-tools-0.9.5, samba 3.0.9 MegaTech Linux - Server 2 03-04-2011 04:58 AM
useradd hangs (newly installed rhel 5.2) johnifanx98 Linux - Newbie 2 01-11-2011 02:52 PM
useradd zeynep Linux - Software 6 01-20-2008 03:21 AM
useradd -D doronunu Linux - Networking 10 01-19-2006 04:11 AM
Useradd - Cannot locate /etc/default/useradd in Solaris Paean Solaris / OpenSolaris 4 12-09-2005 02:36 AM


All times are GMT -5. The time now is 01:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration