LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-08-2010, 05:17 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Question Do I always should add my user to some system groups?


For example I create new user in the system. Do I always should add it to groups like
Code:
adm, dialout, cdrom, plugdev, lpadmin, admin, audio
?

Or this is not required on modern distros?
 
Old 08-08-2010, 06:19 AM   #2
Demerzel
LQ Newbie
 
Registered: Aug 2010
Posts: 23

Rep: Reputation: 15
I can give you an example, Debian Lenny. If I create new user and won't add him to audio group he wont be able to hear anything from sound card.
When you create new user you also create new group with the same name. Adding to other groups is a matter of need.
 
Old 08-08-2010, 06:24 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
What if I add all permissions to "others" for audio device in "/dev" ? Will this make unneed to add user to audio group?

And what about other groups like I mentiond in the topic?
 
Old 08-08-2010, 06:52 AM   #4
Demerzel
LQ Newbie
 
Registered: Aug 2010
Posts: 23

Rep: Reputation: 15
Something tells me that solution for you is editing basic settings for new user. I read about that long time a go. When you create new user they already will get all groups.

I am not sure but I think that setting even chmod -R 777 on /dev will not be enougth. In fact I started to be courious my self.

Last edited by Demerzel; 08-08-2010 at 07:16 AM.
 
Old 08-08-2010, 02:08 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
For example I create new user in the system. Do I always should add it to groups like
If you want sensible advice, you are going to have to tell us a bit more:

For example, are you talking about a server with hundreds, or thousands users (we do get these on LQ sometimes) or is this just your "Family PC"?
Who uses it?
How (one at a time, or all at once)?
What for (Email, watching videos, WP)?
 
Old 08-09-2010, 01:59 PM   #6
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
tredegar, it's my computer and noone uses it except me. Purposes - Web, E-mail, OpenOffice and printing, text keeping, listening to MP3s...
 
Old 08-09-2010, 02:11 PM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
If it is only you, then the solution is easy.

Login as the "install" user (the first one you created).

Find out what groups you are in with the groups command.
Now (as root) add your newly created user to all the same groups: Then, everything will work as you are used to, with your second username. You can use the GUI [System - Administration - Users & Groups] or the command line to do this. The GUI is "easier", but the command line is handy if you get yourself into a muddle.

It is best not to change permissions on devices ( /dev/whatever ), but to manage access rights with the groups as set up by your distro (ubuntu).

If you were creating a user account for one of your children, I'd advise against granting them membership of administration groups, because they could then break your OS [let's face it - as the "Family Sysadms" we don't really care what they do in their home dirs, we do care about the system booting and running properly for everyone else].

Hope this helps.
 
1 members found this post helpful.
Old 08-10-2010, 03:17 AM   #8
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Yeah it helps a lot, thanks!
So system groups that user is in depend on a distro? Different distros - different system groups for first non-root user?
 
Old 08-10-2010, 04:49 AM   #9
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
With ubuntu, the default is that the first user is granted administrative rights (they can use sudo), other users cannot, unless the first user grants them this.

See here

Different distros do things differently.
 
  


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
Can't add local system user - useradd keeps saying user already exists ADeluiz Linux - Security 5 07-26-2013 04:17 PM
[SOLVED] What's the command to add these groups to user account? cola Slackware 13 01-30-2010 05:39 AM
How to add/remove groups with user? cola Slackware 6 12-28-2009 03:16 PM
What groups to add a new user to? prophet621 Linux - Newbie 2 03-02-2005 12:17 PM


All times are GMT -5. The time now is 06:33 AM.

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