Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Slackware - Installation This forum is for the discussion of installation issues with Slackware.


  Search this Thread
Old 01-21-2004, 08:13 AM   #1
LQ Newbie
Registered: Jan 2004
Location: Knivsta, Sewden
Distribution: SLackware
Posts: 20

Rep: Reputation: 0
How can i create another user than root?

I read somwhere in a file (cant remember wich) that i shouldnt be logged in as root all the time. But how do i create another user account?

question no.2

have a good time //JEsper
Old 01-21-2004, 08:26 AM   #2
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
You use the command useradd. For instance, if you want to create a user that with username broink, home dir /home/broink and shell bash, issue
useradd -d /home/broink -g broink -G users -m -s /bin/bash broink
Well, see the man pages (man useradd) for more info on the command.

About the groups ("-g broink -G users")... The groups have to be created first, using groupadd. The group given after "-g" in the useradd command is the default group, and I usually put the user's own group there (broink, here). After "-G" a whole list of groups can be given, if you want to. There might be files/commands that you want the users as a group to access, so then it might be a good idea to let the users belong to the group users as well, to make things a bit easier.

IMPORTANT! When you create a user account like this, it won't have a password yet! Issue passwd broink to set one!
Old 01-21-2004, 09:25 PM   #3
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 31
Or you could type useradd and it will guide you through adding a user (ie, it will ask what do you want for the login name, what group(s) etc). Harder to mess that up too.
Old 01-22-2004, 02:20 PM   #4
LQ Newbie
Registered: Jan 2004
Location: Knivsta, Sewden
Distribution: SLackware
Posts: 20

Original Poster
Rep: Reputation: 0
i just wrote adduser and a small "guide" helped me through the usermaking

Thanks for all help


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
How to create another root user ? RipClaw Linux - Newbie 19 10-25-2005 10:08 AM
how to create user root accounts - SuSE 92 jdaniel Linux - Software 3 07-29-2005 12:35 PM
how to create root-like user/account? rsumbeling Linux - General 6 11-23-2004 01:38 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
How can I create a user with the same privileges as the root ? Menestrel Linux - Newbie 3 11-19-2003 10:38 PM > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 11:37 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