Do I always should add my user to some system groups?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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)?
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].
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.