Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-28-2004, 11:06 AM   #1
LQ Newbie
Registered: Apr 2004
Location: QC, Canada
Distribution: Red Hat 9.0
Posts: 7

Rep: Reputation: 0
groupadd and useradd bash commands


I just installed RH9.0.

I want to add users and groups in the terminal, but the commands groupadd and useradd, and any of their relatives, are missing. How can i fix this?

Old 04-28-2004, 11:42 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
They are probably there, but missing from your $PATH. As root (use the su command to become root, don't log in as the root user) type echo $PATH. If the resulting list lacks /sbin, /usr/sbin and /usr/local/sbin you can add them permanently to your path by editing root's ~/.bashrc and adding the following line:
You can make the changes take effect immidiately by typing source ~/.bashrc (still as root). Echo your $PATH again and you should see the sbin dirs in the list of directories that are searched for executables.

Or, if all this seems like it's not worth it just type the full path to the commands, which are typically located in /usr/sbin, so you would type /usr/sbin/useradd and so on.



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
commands: adduser and useradd kurrupt Linux - Security 2 10-19-2004 11:47 PM
useradd and other commands BugBear Linux - Software 4 05-25-2004 07:29 AM
Groupadd and useradd for RH 8.0 ??? edhan Linux - Newbie 12 10-07-2003 11:08 PM
bash: useradd: command not found KennyK Linux - Software 2 04-17-2003 09:02 AM
bash: useradd: command not found 360 Linux - Networking 4 08-23-2001 09:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration