LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 01-21-2004, 07:13 AM   #1
BroinK
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, 07:26 AM   #2
Bebo
Member
 
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
Code:
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, 08:25 PM   #3
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
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, 01:20 PM   #4
BroinK
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
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 07:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration