Thursday, January 20, 2011

Managing groups

Started using dbus for opening different partitions on hard drive.
Suddenly had an issue with refused rights.
Had to add myself as user to the group dbus: sudo gpasswd -a paul dbus

Clear Arch-wiki section about managing groups:

List groups

Display group membership with the groups command:

$ groups [user]

If user is omitted, the current user's group names are displayed.

To list all groups on the system:

$ cat /etc/group

Manage group membership

Add users to a group with the gpasswd command:

# gpasswd -a [user] [group]

To remove users from a group:

# gpasswd -d [user] [group]

If the user is currently logged in, he/she must log out and in again for the change to have effect.


No comments:

Blog Archive

About Me

Exclusion of liability Regarding StillStupid: The use you make of the guides, tips and downloads that you listed on this web site or on another website to which I refer is entirely at your own risk. In no way can I be held liable for damage or consequential damages of any kind, which occurs as a result of that use.