LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-02-2003, 11:24 AM   #1
ethanw
LQ Newbie
 
Registered: Feb 2003
Location: Highlands Ranch, CO
Posts: 2

Rep: Reputation: 0
Question useradd on RedHat 7.x


I installed RedHat 7.1 and am just learning my way around it. I seem to be having some problems managing users. If I open an X-Term window from Gnome and su to root, I cannot execute useradd or adduser. I run locate and they show up in my sbin directory. Likewise I seem unable to run linuxconf.

Any ideas of what I'm doing wrong?

Thanks

Ethan
 
Old 02-02-2003, 11:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
run "su -" to drop to root. so you don't screw up your path. you can always just run /sbin/useradd directly... as for linuxconf, just don't use it. it's liable to screw your system up.
 
Old 02-02-2003, 11:36 AM   #3
ethanw
LQ Newbie
 
Registered: Feb 2003
Location: Highlands Ranch, CO
Posts: 2

Original Poster
Rep: Reputation: 0
Chris,

Thanks for the reply. I had been cd'ing to the /usr/sbin directory then trying to execute useradd, which wasn't working. When I do as you suggest and include the full path with the command, it works.

Is this normal?

Is LINUX unable to execute a command, even in your current directory, unless it is in the path environment variable? Is /usr/sbin normaly not part of the path?

Thanks

Ethan
 
  


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
redhat enterprise 4 and useradd kafnir Linux - General 1 08-03-2005 01:56 PM
useradd:'invalid user name' error when creating a machine account on RedHat Linux ES4 santosh0805 Linux - General 1 07-12-2005 08:39 AM
useradd jerryluis Fedora 9 03-27-2005 07:37 PM
Using Useradd spud Linux - Newbie 6 03-10-2005 03:50 PM
useradd cyrush Linux - Distributions 3 01-21-2003 09:40 PM


All times are GMT -5. The time now is 07:38 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