Sunday, May 31, 2009

Adding Users to Groups

Users must be added to cdrom, audio, video, scanner, plugdev and power groups. To achieve this run below command as root for each group.

# gpasswd -a user group

For example;

# gpasswd -a ertan plugdev

adds user ertan to group plugdev.

Manually editing /etc/group file as root, one can add one or more users to a specified group also.

# nano /etc/group

...

audio:x:17:root,user1,user2
video:x:18:root,user1,user2
cdrom:x:19:root,user1,user2

...


* It is seen that user1 and user2 are the members of audio,video and cdrom groups.

No comments:

Post a Comment