[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Q: User access to hardware peripherals - preferred method?



On Wed, 7 Apr 1999 shaleh@clifford.livenet.net wrote:

> > What is the One True Debian way to allow users access to special devices such as
> > floppies, CD-ROM drives and modems (ie., ppp, efax and minicom)?
> > 
> > But simply doing the following for user foo does not work (at least on my
> > 2.1 system): 
> > 
> > 	# addgroup foo floppy
> > 	# addgroup foo audio
> > 	# addgroup foo dip
> 
> That SHOULD work.  The user must logout and back in.  do a 'groups' as the
> user to make sure they are in the group.

This works for the CD-ROM drive after doing "chgroup audio /dev/cdrom;
chgroup audio /dev/hdc" as root (should I have done that?) but doing "mount
/dev/fd0 /floppy" as a user still gets "mount: only root can do that":

$ mount /dev/fd0 /floppy/
mount: only root can do that
$ ls -l /dev/fd0
brw-rw----   1 root     floppy     2,   0 May 27  1997 /dev/fd0
$ groups
m dialout floppy audio dip


Reply to: