Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As I was reading answers to this question asking how to change usernames, a suggestion to change of the name of the group was also made in this answer. What is the significance of the groups whose only member is the user with the same name?

share|improve this question

2 Answers 2

This is a "user private group scheme" issue.

In order to allow more flexibility, most Linux systems follow the so-called user private group scheme, that assigns each user primarily to his or her own group. This group is a group that only contains this particular user, hence the name "private group". Usually this group has the same name as the user login name, which can be a bit confusing.

http://tldp.org/LDP/intro-linux/html/sect_03_04.html

What does this have to do with UPG?

UPG sets the default umask to 0002 so that group users can write to files. This would be undesirable and dangerous if everyone belonged to one group (like the “users” group in SUSE) — but when each user is in their own group, the additional group permission is moot until you write into an SGID directory.

http://www.oreillynet.com/onlamp/blog/2006/09/using_user_private_groups.html

More: http://en.wikipedia.org/wiki/Filesystem_permissions#User_private_group

share|improve this answer
    
Can you explain in a bit of plain English, please? :) –  Oxwivi Nov 10 '11 at 13:55
    
Maybe this one could be helpful :) security.ias.edu/how-and-why-user-private-groups-unix –  heartsmagic Nov 10 '11 at 14:02

Well, you could have services perform actions on your behalf, for instance. The service would have its own user account, and you would add that user to your primary group. You then give your primary group a certain set of permissions, which would then automatically be given to those services.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.