LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-11-2009, 08:24 AM   #1
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Rep: Reputation: 31
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?
 
Old 08-11-2009, 08:28 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
AFAIK, it's useradd also make sure you're root.
 
Old 08-11-2009, 08:40 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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.
 
Old 08-11-2009, 08:44 AM   #4
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
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?
 
Old 08-11-2009, 08:47 AM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
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)
 
Old 08-11-2009, 08:50 AM   #6
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
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?
 
Old 08-11-2009, 09:07 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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.
 
Old 08-11-2009, 09:13 AM   #8
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
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
 
Old 08-11-2009, 09:19 AM   #9
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
Quote:
Originally Posted by pixellany View Post
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

Last edited by sycamorex; 08-11-2009 at 09:20 AM.
 
Old 08-12-2009, 07:18 PM   #10
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
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.
 
Old 08-13-2009, 01:47 AM   #11
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Check/post the sshd-config file. See /var/log/messages ?
 
Old 08-15-2009, 06:08 PM   #12
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
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
 
  


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
CentOS 4.4 - no useradd or adduser command Micro420 Red Hat 5 04-05-2007 12:14 AM
adduser command in Suse 10.0 anassusu Suse/Novell 3 11-12-2005 07:42 PM
Command-line 'adduser': password not hashing Talesin Fedora 0 10-08-2004 09:19 PM
strict usergroup ?? how to ?? help plz Mr.Bingles Linux - Networking 0 06-07-2004 02:03 AM
Easy problem??? Can't find adduser or useradd in fresh install of Fedora jdruin Linux - Newbie 3 02-21-2004 11:57 PM


All times are GMT -5. The time now is 07:36 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration