LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 07: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, 07:28 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

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

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 07: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, 07:47 AM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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, 07: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, 08:07 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 08:13 AM   #8
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

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

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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 08:20 AM.
 
Old 08-12-2009, 06: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, 12:47 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Check/post the sshd-config file. See /var/log/messages ?
 
Old 08-15-2009, 05: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

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
Open Source Consulting | Domain Registration