Posted by Steve on Mon 14 Mar 2005 at 11:00
Like a lot of other Linux distributions Debian handles hardware access via the groups upon the system. This is the single most common reason why access to sound, CD-ROMs, and other devices fail.
A common symptom of insufficient permissions will be that the superuser, root, will be able to perform an action, such as listening to music, whilst an ordinary user will not be able to.
On Debian systems there are a number of different groups, each specified in the /etc/group file, for controlling access to particular devices.
Other groups exist as a simple convention, so far example members of the staff group can write to /usr/local by default - so they can add local software. Similarly the members of the group src can directly write to the /usr/src directory.
To add a user to a particular group you would run the following command as root:
adduser username groupname
Eg:
root@mystery:~# adduser skx audio Adding user `skx' to group `audio'... Done.
Once this has been done the user must logout and login again for the changes to take effect.
To see which groups you are a member of you can run the "id" command:
skx@mystery:~$ id uid=1000(skx) gid=1000(skx) groups=20(dialout),24(cdrom),25(floppy),29(audio),44(video),1000(skx)
This article can be found online at the Debian Administration website at the following bookmarkable URL:
This article is copyright 2005 Steve - please ask for permission to republish or translate.