LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-12-2011, 07:09 AM   #1
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
What usergroups should a given user be added to?


So I just recently installed fresh 13.37 over my 13.1 install. Went multilib, and added myself to the usergroups I thought I might need. But truth is, I don't know what half of these are and I just picked the ones that sounded right.

I'm the only user on this computer, although I might possibly maybe add another someone if I have to for some reason.

For my user account, I added myself to:
Code:
bin
disk
mem
kmem
wheel
floppy
mail
news
uucp
man
dialout
audio
video
cdrom
games
mysql
sshd
gdm
shadow
ftp
messagebus
haldaemon
plugdev
power
netdev
scanner
users
console
kismet
vboxusers
Basically, I want my own account to be able to do everything I normally do without too much restriction (use the disc drive, mount harddrives, browse the web, read/send email via Thunderbird, download stuff, etc), but leaving the important stuff to root so that if someone else happens to use the computer under my account, they can't do any damage. Did I select the right groups for this? Should I add or remove any?

And what groups should a user have if I just want them able to browse the web, download files, use their /home, run non-root apps, and nothing else?

Thanks!
 
Old 06-12-2011, 07:11 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I am member of these groups and totally fine with it:
Code:
users wheel floppy audio video cdrom plugdev power netdev vboxusers

Last edited by TobiSGD; 06-12-2011 at 01:14 PM. Reason: fixed code-tags
 
1 members found this post helpful.
Old 06-12-2011, 07:15 AM   #3
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Cultist View Post
Basically, I want my own account to be able to do everything I normally do without too much restriction (use the disc drive, mount harddrives, browse the web, read/send email via Thunderbird, download stuff, etc), but leaving the important stuff to root so that if someone else happens to use the computer under my account, they can't do any damage. Did I select the right groups for this? Should I add or remove any?
You have too many (IMO).

The groups...
Code:
users audio video cdrom plugdev power
...will allow you to do just about anything.

If you want to give yourself sudo access to all commands, you can add the wheel group to the above list. However, you'll have to edit the /etc/sudoers file and uncomment some lines to turn that on. The comments in the file tell you which lines you would choose.

Quote:
And what groups should a user have if I just want them able to browse the web, download files, use their /home, run non-root apps, and nothing else?
Code:
users
...will do the trick.
 
1 members found this post helpful.
Old 06-12-2011, 08:53 AM   #4
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,096

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
You might also want to add yourself to lp, scanner, and uucp.
 
1 members found this post helpful.
Old 06-12-2011, 10:04 AM   #5
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
This is a questions that has been bothering me for a while too. A few groups a specified in the documentation that comes with Slackware, but the rest just seem like it would be a good idea to belong.

There has to be a way to trace where each group comes from and what the functional and security implications are for belonging to a group.
 
Old 06-12-2011, 10:51 AM   #6
xhack
LQ Newbie
 
Registered: Jun 2011
Distribution: AntiX
Posts: 19

Rep: Reputation: 12
The groups Richard Cranium listed pretty much cover the bases. Frankly, many of the groups listed in the OP, it's dangerous and/or insecure to add a regular user to.
 
Old 06-12-2011, 11:30 AM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
For my user account, I added myself to:
The vast majority of those groups exist for the sole purpose of having a non-privileged accounts for various daemons to drop to after starting. There is absolutely no reason for a normal user (even one that can do pretty much anything) to belong to those.
 
Old 06-12-2011, 11:31 AM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Question cdrom == burning???

Code:
users audio video cdrom plugdev power
I don't know if cdrom implies you can burn optical media though does it? If not you might want to add burning into /etc/group and add yourself to it.

I have added that and my username to it so I can burn optical media but I just don't know if that is redundant because of cdrom.

Last edited by Jeebizz; 06-12-2011 at 11:34 AM.
 
Old 06-12-2011, 11:32 AM   #9
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
Basically, I want my own account to be able to do everything I normally do without too much restriction (use the disc drive, mount harddrives, browse the web, read/send email via Thunderbird, download stuff, etc), but leaving the important stuff to root so that if someone else happens to use the computer under my account, they can't do any damage. Did I select the right groups for this? Should I add or remove any?
Way too many groups. None of my user accounts are members of the following groups:

bin mem kmem mail news uucp man dialout games mysql sshd gdm shadow ftp messagebus haldaemon netdev console kismet

Quote:
And what groups should a user have if I just want them able to browse the web, download files, use their /home, run non-root apps, and nothing else?
Some examples:

My primary user account is a member of the following groups:

$USER disk wheel floppy audio video cdrom plugdev power scanner users vboxusers compilers media

The last two groups are related only to my LAN and are not stock Slackware groups. The compilers groups is for maintaining my package building environment. The media group is for maintaining shared media files. For example, anybody who is a member of the users group has read access to my shared media files but only a member of the media group can modify tags; add, delete, and edit files; etc.

Most of the remaining accounts in my LAN are members of the following groups:

$USER disk floppy audio video cdrom plugdev scanner users

I have some special accounts that serve restricted purposes and are not a member of the users group. For example, I have a special kiosk account that is a member of only the following groups:

$USER audio video plugdev power

I created the kiosk account with the intention of allowing house guests to use my computers for web browsing but prevent them from snooping around the computers and LAN. The limited groups and specially configured desktop prevent snooping. For example, the kiosk account can download files and insert a USB flash drive but with no file manager availability or desktop icons the guest user needs my help to move the file to the USB device. In other words I will know if a p0rn video was downloaded (and my kiosk login message warns the user of this).

On my home theater PC my primary login account is a member of the following groups:

$USER disk floppy audio video cdrom plugdev power

Like the kiosk account, the desktop is specially configured to restrict traditional desktop computer usage.

Of course, appropriate directory and file permissions are needed to compliment the various group assignments.

Do know there is a 16 group "threshhold." Exceeding that number of groups will not stop the world from spinning but will result in a nagging message during logins.

Quote:
There has to be a way to trace where each group comes from and what the functional and security implications are for belonging to a group.
Sounds like a project for somebody. Would be handy information for the LQ wiki or Slackbook.

Most of those types of groups are for daemons and services, not users.

Last edited by Woodsman; 06-12-2011 at 11:34 AM.
 
1 members found this post helpful.
  


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
How to automatically add smb user when unix user added Winanjaya Linux - Newbie 3 01-07-2007 11:17 AM
Added new user not available for login anatman SUSE / openSUSE 2 05-23-2006 04:05 PM
Configurations for added user in FC4 markelo Fedora 3 02-23-2006 05:16 PM
added user / cannot FTP freebies Linux - Software 2 09-22-2005 02:30 AM
about cgi for added user raymond Linux - General 1 07-13-2003 09:17 AM

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

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