groupadd and useradd don't work
groupadd and useradd don't work
I am kind of new to Linux. I have setup a CentOS 5 server which is up and running. I am trying to follow directions to add some services and software. Some of which instruct me to add users and groups. When I try to add a group via groupadd or usersadd it tells me bash: groupadd: or useradd: command not found? How do I enable these commands?
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
groupadd and useradd don't work
Login as root, or "su -".
-
- Posts: 5
- Joined: 2007/11/23 18:35:04
- Location: IL
Re: groupadd and useradd don't work
Logging in as root won't magically find the file :)
Try the command "whereis useradd" Typically its in /usr/sbin/useradd but for some reason it wants you to type the full path. Give that a try and see if it works. You'll still need to be root or Super User to use it but now you can find where it is to execute it.
-Rhein
Try the command "whereis useradd" Typically its in /usr/sbin/useradd but for some reason it wants you to type the full path. Give that a try and see if it works. You'll still need to be root or Super User to use it but now you can find where it is to execute it.
-Rhein
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: groupadd and useradd don't work
Yes it will !
/usr/sbin is NOT in a normal user's PATH.
It IS in root's PATH.
You must be root to run this command.
/usr/sbin is NOT in a normal user's PATH.
It IS in root's PATH.
You must be root to run this command.