Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-24-2004, 05:28 PM   #1
LQ Newbie
Registered: May 2004
Posts: 20

Rep: Reputation: 0

2 Questions. They probably go together, hand-in-hand though.

1. How do I manually create a user account.
2. How do I login as the root. Right now I have installed Rehat 9.0, and I have only created my one account. Is this already the root user. If so, when I attempt to do certain things, such as access etc/shadow and etc/passwd, it says only the root can do such things.


Old 05-24-2004, 05:32 PM   #2
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
1. adduser command

2. you have to use "su" command and then you will be prompted for the root passwd.
Old 05-24-2004, 05:34 PM   #3
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
1) How manual?
vi /etc/passwd
vi /etc/shadow
2) Open up a terminal and run "su -" enter your root password then you have root privilages in that shell.
Old 05-24-2004, 05:39 PM   #4
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
You've to be root to create accounts. An easy way to know if you are root or not, is to open a terminal and notice if your prompt is a hash (#) or a dollar symbol ($). Hash denotes root user, while dollar a non-root user:

[megamanx@localhost mega]$

[megamanx@localhost mega]#

You can become root by anytime by simply typing "su" at the terminal without the quotes. You will be prompted for the root password that you choose during installation process.

To add a new user, simply type, as root "useradd". You will be prompted for a couple of question for this user, including home directory, group and password. If later you wish to change any user password, including root, use the command "userpasswd".

Also, without being picky, but try making more descriptives threads in the future. "no" is a bad, bad thread title. "Help with root and managing users" would be 1.000.000x better and you will get quicker replies

Good luck!
Old 05-24-2004, 06:01 PM   #5
LQ Newbie
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Help with creating another user

I have been able to login as root user. However when I type in "useradd" i am given the prompt "bash: useradd:command not found"

i tried doing "where is useradd" and then going to that directory and typing useradd, but I obtained the same results. Any suggestions guys.
Old 05-24-2004, 06:13 PM   #6
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Old 05-25-2004, 08:26 AM   #7
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
then try adduser


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration