Hi I have an odd problem trying to set permissions in fstab on my sytem. You see the thing is I want to give users full read write and execute access (except on my NTFS partitions where writing - despite recent advances - still isn't advisable). currently I have my fstab file set up as follows:
Code:
/dev/hda2 /boot ext3 defaults 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda4 swap swap defaults 0 0
/dev/hda1 /mnt/hda1 ntfs ro,umask=0222 0 0
/dev/sda1 /mnt/sda1 ntfs ro,umask=0222 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/fd0 /mnt/floppy vfat defaults 0 0
/dev/hdc /mnt/cdrom auto ro,noauto,umask=0222 0 0
/dev/hdd /mnt/cdrom2 auto ro,noauto,umask=0222 0 0
none /dev/pts devpts gid=5,mode=620 0 0
The problem is however that I can access both my NTFS partitions as a user but no matter what I do I seem to be unable to mount my CDROM drives as a user. As root or SU I can issue the mount command no problem. Providing I do this as root the user can then click on the CDROM drive on the desktop and read and execute any of the files there - but only root appears to have access to the mount command. Indeed if I try as a user to mount the drives I get a sharp message that only root is allowed to mount the drive on /mnt/cdrom. I have tried a variety of permssion schemes, but none seem to work.
I have changed the permission of the devices in /dev and in /mnt/ cdrom so that they are read write and execute for all. I have added the user to the cdrom group I have tried issuing a umask of 0222 - which again should be read write acess and execute for all - but still users cannot mount the drives on request.
I have come to wonder if perhaps it is possible that users only have limited acess to drive hda3 - which is my / partition - and if perhaps it is this that is blocking users access to the mount command?
If so how do I fix it and how do I allow user to mount and access drives with as few restrictions as possible?
Overall currently permissions seem utterly anal. The idea of Linux is to keep others out, but preferably this shouldn't mean keeping me out of my system too.
If you are wondering about the weird designation of hdc and hdd for my CDROM drives, I don't understand it very well myself. However initially they refused to mount at all (I kept getting messages about my CDROM drives being invalid block devices) and I did a search and found an answer here that told someone to do this. I simply copied it and it seems to have worked. (Except for the permissions thing).
Another weird thing is I cannot mount my floppy drive at all during boot, no matter what options I give it it always complains that /dev/fd0 is not a valid block device. Yet I can mount it as root and can view the files on it no problem. I have enabled floppy drive support in my kernel and I have also enabled dos and vfat into my kernel too. But none of this has made any difference at all.
Can I define through fstab who has what privlidges on my / root partition? I would like to give local users as much elevated privlidge as possible, without risking a user gaining fatal access to crucial system files. The current pernsisions scheme is waaay too restrictive.
Any input anyone can offer on either of these issues would be very much appreciated.
Best regards,
GJ