SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there guys.
I need a little help with mi permissions in fstab.
The thing is that for the hard drivers i have what i need, because i whant to give full permission to root and group users.
Mi problem consistes that i need to give all the permitions to the group to mi CDRW, Floppy, and DVD, so all mi goup users can read wright and exec, but i whant only root and group users to be able to doo this...
For the hard drives the umas=0007 work perfectly, and for te CDRW, Floppy, and DVD, what shoul i use???
Here is mi current fstab:
you want everybody to be able to do everything on a device, right?
ok, i don't know what device represents cdrw, but he first thing is to make sure your fstab is similar to the ones presented here, and it seems that it is, so don't worry about /etc/fstab
change permissions on your device; do su - (enter password for root), cd into /dev, then do chmod 777 dvd cdrom fd0 sr0
if the floppies you are using are DOS formatted, you can use the same options as for your /dev/hda1. I don't think you can do what you want if the floppy is ext2 formatted from fstab.
As for CDs, I'm not sure. Maybe a conbination of no-rock option and mode will do it (consult man mount for details). Only root will be able to write to it unless you set the right permissions for the programs writing to it.
O.K., now we are talking...
What about only the root and the group beeing able to use the devices???
Itīs that possible?
Thanks for the help TheOneAndOnlySM.
if the floppies you are using are DOS formatted, you can use the same options as for your /dev/hda1. I don't think you can do what you want if the floppy is ext2 formatted from fstab.
Originally posted by serz This is a part of my /etc/fstab file:
Code:
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/dvdrom /mnt/dvdrom auto noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,user,rw 0 0
You mount them read-only, except the floppy. I don't know as for the CDRW.
My /etc/fstab is set up the same way, and I can mount the drives successfully as my user, but i cannot browse the directory that I mount my cdroms. I get a permissions error. Only root can browse the dir. Any ideas?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.