LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-02-2009, 12:24 AM   #1
SolitudeSensus
Member
 
Registered: May 2009
Posts: 73

Rep: Reputation: 15
Talking User Account


I have just installed Slackware. I'm logging in as root. I want to
create new user account. How to create new account?
 
Old 07-02-2009, 12:37 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Use the command "adduser".
 
Old 07-02-2009, 08:29 AM   #3
SolitudeSensus
Member
 
Registered: May 2009
Posts: 73

Original Poster
Rep: Reputation: 15
Smile Kind of user

I want to add that kind of user who doesn't have rights that root has.But
He/she can access CD, DVD, USB, except root files and other users directory. What should I do?
 
Old 07-02-2009, 09:42 AM   #4
cardboardtoast
LQ Newbie
 
Registered: Apr 2009
Distribution: Slackware 12.2
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by SolitudeSensus View Post
I want to add that kind of user who doesn't have rights that root has.But
He/she can access CD, DVD, USB, except root files and other users directory. What should I do?
You'll want to use the "adduser" command like Nylex said. This will create a more limited account. You will be asked what "groups" the user should be in such as "cdrom", "audio" etc...It's covered at the end of the "installation HOWTO"..you can find it in one of the stickies in the slackware forums
 
Old 07-02-2009, 10:26 AM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Solitude:

if you are running slackware 12.2 you should have available gui based user management applet. just click lower left ribbon menu button>System>KUser this should offer you the gui. there click User> Add> write your user name. Highlight the newly added username click Edit. There you can add or subtract group memberships to the new user.

add for him groups like: cdrom, audio, and games (the user will have enough to enjoy); set group "user" as his default group or Set as Primary group.

if you want him to have access to usb-pendrive, disk, or mount drives add him groups "messagebus" "daemon" "haldaemon" "plugdev" (don't do this if you don't want to).

You may also use terminal command "adduser" as Nylex suggested. for more info on how you manipulate the command read the manual: "man adduser" <Enter>

hope this helps.

goodluck.
 
Old 07-04-2009, 02:25 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
When you use adduser, it'll ask you if you want the user to be a member of groups in addition to the default "users" and will present you with a list of recommended ones. Those should be sufficient, IIRC.
 
Old 07-04-2009, 02:31 AM   #7
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
Easy way,
Code:
useradd -g users -G slocate,disk,cdrom,plugdev,lp -d /home/<user name>/ -s /bin/bash -m <user name>
example
useradd -g users -G slocate,disk,cdrom,plugdev,lp -d /home/okos/ -s /bin/bash -m okos

Modify a user. Add additional groups for an existing user.
Code:
usermod -G <group name> <user name>
example
usermod -G ftp okos

Last edited by okos; 07-04-2009 at 02:38 AM.
 
  


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
root account or user account arodlinux SUSE / openSUSE 3 12-23-2008 08:59 PM
Prevent user account from logging in but allow su to account DejaCpp Linux - General 4 07-26-2006 11:44 AM
User Account to Access Another Account benfaust Linux - General 2 06-28-2006 12:26 PM
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 07:49 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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