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.

source: https://wiki.archlinux.org/index.php/GroupsLink

No comments:

Blog Archive