I would like to ask someone to help me to setup rights for user. My CDRW and DVD works perfect under root but I don't know how to setup rights that I would be able to use them as ordinary user :cry: During the installation I've used the command according to manual.
My fstab looks as follows:
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
none /proc proc defaults 0 0
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
/dev/cdroms/cdrom0 /mnt/cd iso9660 ro,user,noauto,unhide 0 0
/dev/cdroms/cdrom0 /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/cdroms/cdrom1 /mnt/cdrw iso9660 ro,user,noauto,unhide 0 0
/dev/floppy/0 /mnt/fl vfat user,noauto,unhide 0 0
/dev/discs/disc1/part2 swap swap defaults 0 0
/dev/discs/disc1/part1 / reiserfs defaults 0 0
/dev/discs/disc1/part3 /home reiserfs defaults 0 0
Oh yes as a default manager I use kde.
Please help me :cry:
maybe this one will help you:
to summarize: (as root) gpasswd -a (your user name) optical AND gpasswd -a (user name) audio. That will give you permission to all CD and audio devices. Do that for all users you want to have access.
Oh, and RTFW
Thank you that was quick Well I've tried and as a result:
mount: wrong fs type, bad option, bad superblock on /dev/cdroms/cdrom0,
or too many mounted file systems
so that's what I got. And again under root it works perfect same device same DVD,CD :cry:
By the way what did you mean by "Oh, and RTFW"?
did you restart devfs after adding your user to the both groups?
if you did , can you post also your /etc/devfs.conf
I've restarted the whole system(how can devfs be restarted?).
# PLEASE NOTE: Arch Linux is phasing out its support for DevFS. You should
# be moving to uDev sometime in the near future, as that's
# where the rest of us are going.
# /etc/devfsd.conf configuration file.
# Richard Gooch <email@example.com> 17-FEB-2002
# Enable full compatibility mode for old device names. You may comment these
# out if you don't use the old device names. Make sure you know what you're
REGISTER .* MKOLDCOMPAT
UNREGISTER .* RMOLDCOMPAT
# Permissions for sound devices
REGISTER ^sound/.* PERMISSIONS root.audio 660
REGISTER ^snd/.* PERMISSIONS root.audio 660
# Permissoins for optical devices
REGISTER ^cdroms/.* PERMISSIONS root.optical 660
# You may comment out the above and uncomment the following if you've
# configured your system to use the original "new" devfs names or the really
# new names
#REGISTER ^vc/ MKOLDCOMPAT
#UNREGISTER ^vc/ RMOLDCOMPAT
#REGISTER ^pty/ MKOLDCOMPAT
#UNREGISTER ^pty/ RMOLDCOMPAT
#REGISTER ^misc/ MKOLDCOMPAT
#UNREGISTER ^misc/ RMOLDCOMPAT
# You may comment these out if you don't use the original "new" names
REGISTER .* MKNEWCOMPAT
UNREGISTER .* RMNEWCOMPAT
# Enable module autoloading. You may comment this out if you don't use
LOOKUP .* MODLOAD
# Uncomment the following if you want to set the group to "tty" for the
# pseudo-tty devices. This is necessary so that mesg(1) can later be used to
# enable/disable talk requests and wall(1) messages.
#REGISTER ^pty/s.* PERMISSIONS -1.tty 0600
#REGISTER ^pts/.* PERMISSIONS -1.tty 0600
# Uncomment this if you want permissions to be saved and restored
# Do not do this for pseudo-terminal devices
#REGISTER ^pt[sy] IGNORE
#CREATE ^pt[sy] IGNORE
#CHANGE ^pt[sy] IGNORE
#DELETE ^pt[sy] IGNORE
#REGISTER .* COPY /dev-state/$devname $devpath
#CREATE .* COPY $devpath /dev-state/$devname
#CHANGE .* COPY $devpath /dev-state/$devname
#DELETE .* CFUNCTION GLOBAL unlink /dev-state/$devname
# Uncomment this if you want the old /dev/cdrom symlink
#REGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdrom
#UNREGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL unlink cdrom
# Uncomment this to let PAM manage devfs
#REGISTER .* CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath
# Uncomment this to manage USB mouse
REGISTER ^input/mouse0$ CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER ^input/mouse0$ CFUNCTION GLOBAL unlink usbmouse
REGISTER ^input/mice$ CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER ^input/mice$ CFUNCTION GLOBAL unlink usbmouse
# If you have removable media and want to force media revalidation when looking
# up new or old compatibility names, uncomment the following lines
# SCSI NEWCOMPAT /dev/sd/* names
#LOOKUP ^(sd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd if=$mntpnt/1 of=/dev/null count=1
# SCSI OLDCOMPAT /dev/sd?? names
#LOOKUP ^(sd[a-z]+)[0-9]+$ EXECUTE /bin/dd if=$mntpnt/1 of=/dev/null count=1
# IDE NEWCOMPAT /dev/ide/hd/* names
#LOOKUP ^(ide/hd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd if=$mntpnt/1 of=/dev/null count=1
# IDE OLDCOMPAT /dev/hd?? names
#LOOKUP ^(hd[a-z])[0-9]+$ EXECUTE /bin/dd if=$mntpnt/1 of=/dev/null count=1
Well this is it.Hope it will help. :cry:
do you have the same problem with your floppy?
Now that you've mentioned that yes I do. Do you know what the problem is and how to solve it?
i sent you a PM, check your inbox.
Well, to change user to users in fstab didn't help. :cry: Now it seems that I've tried everything but with no positive result. Anyway thank you Stanislav for your help. If you would find something that could possibly help me to solve that please post it. Is there anyone else who would know how to solve this problem? Thank you once more
:cry: :cry: :cry: :cry: :cry:
Have you tried
$ mount /mnt/cd
Yes I've tried mount /mnt/cd, /mnt/dvd, /mnt/fl, /mnt/.....
but that didn't work. :cry: :cry: Help.....
are you sure you're member of the optical group?
do you see cdrom0 & cdrom1 when you go to /dev/cdroms/ ?
Yes I do see those cdrom0, cdrom1. Does it change anything? Another things that I see in etc are devfsd.conf and devfsd.conf.pacsave which are different as in devfsd.conf there are permissions for those groups optical and audio but in devfsd.conf.pacsave I don't see anything like that does it help? :cry:
O.K. it seems that nobody cares or what could be worse nobody knows
So related to floppy as root I'm able to mount it by use of command
mount -t vfat /dev/fd0 /mnt/floppy like user I get this
Could not mount device.
The reported error was:
mount: wrong fs type, bad option, bad superblock on /dev/floppy/0,
or too many mounted file systems
even that I've used /dev/floppy/0 in properties-device instead of /mnt/floppy.
Than I've created icons on KDE desktop for CDRW,DVD,CDROM but what I used was
/dev/cdroms/cdrom0 for DVD,CDROM and /dev/cdroms/cdrom1 for CDRW instead of /mnt/dvd etc.. Now it works even that for DVD I have to wait a bit longer to eject it(eject by the use of icon command doesn't work for both I mean CDRW,DVD it says "Eject dev/cdroms/cdrom0 failed!" but as root I'm able to do that!!! )
At the end when I'm loged in console as user I can mount CD,CDRW,DVD to mnt like mount /mnt/dvd for example. Finally for me it seems that there have to be done some changes in some (I don't know where for now) directory or directories of KDE!!! Does someone know how to solve this? Please help.
well for one you never answered whether or not you added yourself to the optical group. whether you use devfs or udev you have to do this. if you use udev you have to follow the rest of the news post recently that mentioned about the new optical and audio groups.
you have also not mentioned what kind of dicc it is you are trying to mount. there is no need to mount an audio cd or dvd. as for floppies ..... i find them completely unreliable now and just place any essentials on a cdrw now.
I am not your friend
Well as far as I know I'm using devfs, secondary yes I did:
"to summarize: (as root) gpasswd -a (your user name) optical AND gpasswd -a (user name) audio. That will give you permission to all CD and audio devices. Do that for all users you want to have access."
Thirdly I checked /dev/cdroms under KDE and changed properties - added in advanced permissions group optical and user tony. So for now I'm able to mount CD,DVD,CDRW but not floppy even that I've done the same for it. What makes me feel confused is that while using console as user I could do that without any problems even before those changes which were done recently exept for floppy. One more thing when I use KDE as root I can mount all of them including floppy even comand eject works while as user I get: Eject /dev/cdroms/cdrom1 failed!: Eject /dev/cdroms/cdrom0 failed! first relates to CDRW second to DVD you can see my fstab somwhere at the beginning of my request for help.
I hope that you know something what could help. Thank you
you might remember me from the other posting (about mouting not working). I was able to fix my problems. One thing that I didn't ask is (and i don't know if you already answered) : did you check you permissions on your /dev/hdx entries?
likeso (again if you already did this, sorry)
ls -l /dev/cdroms/cdrom0 (and same thing for cdrom1)
and these should be symliked to some /dev/hdx device like:
/dev/cdroms/cdrom0 -> ../hda
or something like that. could you check and make sure that the related /dev/hdx is not owned by root and disk (ls -l /dev/hdx)? if it is , you need to either change the the group owner to optical
chown root:optical /dev/hdx
add yourself to the disk group
gpasswd -a (user) disk
and log out and log back in and see if everything is working ok.
RTFW = Read The F*ing Wiki
First of all Thank you very much aias and I mean that. I was thinking that nobody ever is going to respond again. It seems very strange but after I've followed your "procedure" it doesnt seem to help very much. Still I'm not able to mount floppy, eject CD,DVD. For you it could sound funny but when I've tried to add applet Devices to my KDE taskbar it didnt show the icon and in properties I can only see my hard disk /; /home and that's all. As root I've got all of those functions avaliable.
So for me it seems that there is -forgive me my stupid definition I'm newbie - no comunication between base system and graphical desktop in my case KDE. So far I think that I have to setup something in KDE maybe some link I don't know . . . :cry: :cry: In case that you have any other ideas please send them. Thank you once more.