Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14999 - Example of how to add a user should be included
Summary: Example of how to add a user should be included
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: John Davis (zhen) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-02 14:58 UTC by Ricardo Campos
Modified: 2003-02-10 16:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Campos 2003-02-02 14:58:07 UTC
The install docs do not include the next essential step in any system
installation: adding a non-root user you can su from! (Perhaps do this after
telling them to change the root password).

Also, perhaps it should be pointed out in this step that you need to use the -s
/bin/bash switch if you want that user to have BASH as the login shell rather
than SH. This really caught me out, and caused a few erroneus bug reports to do
with terminals.Somthing like:


"Now, add a normal user account to work from:

useradd -s /bin/bash -G users,wheel -d /home/userfoo userfoo
(This creates a user named userfoo who is part of the users and wheel group,
whose default shell is BASH)

mkdir /home/userfoo
chown userfoo /home/userfoo
(This creates a home directory for userfoo, and gives him/her ownership of it)
"

This may be more applicable to another HOWTO on how to set the defaults for user
creation, make it create a directory in /home automatically, etc. Which is sadly
beyond *my* knowledge...

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2003-02-02 15:38:14 UTC
or mention 'superadduser'
Comment 2 Stoyan Zhekov (RETIRED) gentoo-dev 2003-02-03 00:14:01 UTC
On how many places to describe how to add new user? Install guide is not a Linux beginners guide. 

From the Gentoo FAQs: http://www.gentoo.org/doc/en/faq.xml

How do i add a normal user? 

Everyone seems to think that i shouldn't be using root for everyday use, how can i add another user?

The command adduser gentoo will add a user called gentoo. The next step is to give this user a password and passwd will do exactly that.

Insteed of adduser you can also use:

Code listing 2.2

# useradd gentoo -m -G users,audio,wheel -s /bin/bash

This will add a user gentoo, will make possible for him to use sound-related devices (/dev/sound/*), will make possible for him to switch to root (using su) and will make /bin/bash his login shell.

Why can't a user su to root? 

For security reasons, users may only su to root if they belong to the wheel group. To add a username to the wheel group, issue the following command as root:

Code listing 2.3

# usermod -G users,wheel username

My oppinion is that this bug in invalid.
Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2003-02-09 15:20:44 UTC
Maybe we should make a note about this, but I agree w/ Stoyan.
Comment 4 John Davis (zhen) (RETIRED) gentoo-dev 2003-02-09 19:01:12 UTC
I added a note in the install guide to consult the FAQ.
Comment 5 Jungmin Seo (RETIRED) gentoo-dev 2003-02-10 16:20:46 UTC
How about 'superadduser'? i suppose that this script is made by some gentoo developers..

# emerge superadduser

# superadduser 

and answer those questions then you will get a new user :)

check it out!