LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Cannot find adduser, usergroup command (https://www.linuxquestions.org/questions/fedora-35/cannot-find-adduser-usergroup-command-746716/)

wisdom 08-11-2009 07:24 AM

Cannot find adduser, usergroup command
 
I am using fedora Core 9 and I been trying to use command shell to create a new user account with the adduser command but dont seem to be able to find it anywhere. can anyone help?

sycamorex 08-11-2009 07:28 AM

AFAIK, it's useradd also make sure you're root.

pixellany 08-11-2009 07:40 AM

I have:
addgroup
adduser
useradd
userdel
usermod

(Mepis 8)

Note that, in Fedora, to run admin commands, you often have to get into the root environment by using "su -". You can of course modify the $PATH so this is not required.

wisdom 08-11-2009 07:44 AM

I do try it as root and it dont work when issue the command adduser, they was there before I am not sure what has happened? anyway of doing like a system repair?

sycamorex 08-11-2009 07:47 AM

I didn't know we've got 'adduser'.
Try what pixellany suggested, or type /usr/sbin/useradd as root (that is if I remember the path correctly:))

wisdom 08-11-2009 07:50 AM

Thanks I found it! thoughut it would be in /bin/ or /sbin/ or /usr/bin/ before so was mainly searching in those. How can I add /usr/sbin/ to path environment any links to tutorials?

pixellany 08-11-2009 08:07 AM

The PATH is setup during the boot process, according to one or more configuration scripts. The trick is to find the LAST one that does this, and simply add the desired path to it. I'm not familiar with the details for Fedora, but start with /etc/inittab. If you have /etc/init.d, then the scripts are there.

sycamorex 08-11-2009 08:13 AM

Quote:

How can I add /usr/sbin/ to path environment any links to tutorials?
There will be a lot of tutorials on www.google.com :)

Do you really need to add it to the path? It's not that you'll be adding users everyday, or will you? LOL

sycamorex 08-11-2009 08:19 AM

Quote:

Originally Posted by pixellany (Post 3639212)
The PATH is setup during the boot process, according to one or more configuration scripts. The trick is to find the LAST one that does this, and simply add the desired path to it. I'm not familiar with the details for Fedora, but start with /etc/inittab. If you have /etc/init.d, then the scripts are there.

http://linux.derkeiler.com/Mailing-L...4-09/1297.html

edit:
http://linux.derkeiler.com/Mailing-L...4-09/1365.html

wisdom 08-12-2009 06:18 PM

Now i have a problem where I cannot seem to get the account that I created to work, I have used the adduser command and have used
Quote:

# passwd username
I then enter the password. for the user account I have also checked User and Group gui and the account appears in it just like the other and seems to be setup just fine. My problem is now that i can't seem to login to this account when i try using ssh. but can login to my normal account no problem.

chrism01 08-13-2009 12:47 AM

Check/post the sshd-config file. See /var/log/messages ?

wisdom 08-15-2009 05:08 PM

Right I have managed to get it sorted all i had to do is add "root" as a group member of each inidviduals account!
Quote:

/usr/sbin/usermod -G root,apache,deamon uname


All times are GMT -5. The time now is 02:24 AM.