LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   groupadd (https://www.linuxquestions.org/questions/linux-general-1/groupadd-113666/)

Pedroski 11-08-2003 01:38 AM

groupadd
 
Running RH9.
I have in /usr/sbin the file groupadd. Definitely!
However, when I enter groupadd in a terminal, as root, I get "command not found"
Anyone know what might be wrong?
Thanks Peter

MasterC 11-08-2003 02:00 AM

/usr/sbin is not in root's path by default on your distro. You have a few options:
1. run it with full path:
/usr/sbin/groupadd
2. cd to /usr/sbin and run it:
cd /usr/sbin
./groupadd
3. Add /usr/sbin to root's path (search the boards as there are multiple ways to adjust your PATH).

Cool

Pedroski 11-08-2003 04:31 AM

Thanks, that did it!!

MasterC 11-08-2003 11:58 PM

You're welcome ;)

Cool


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