fstab nightmare: how to give users access to ext3 partition?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
fstab nightmare: how to give users access to ext3 partition?
Hi all
I've tried very hard to find an answer to this, both in the linuxquestions archives and on the web in general. Unfortunately, I've failed so far.
There seem to be lots of posts from people who want to mount their windows partitions who have run into a similar problem: only root has rw access to the partition. It seems that for vfat there are a bunch of relevant options like 'umask=xxx' and 'uid=xxx' which get the job done. These are not valid options for ext3, however (as I'm sure you all know). Options like 'users,rw' are accepted, and allow me to mount/unmount, but I still don't get rw access for users. My own user name is 'iu'. I've made iu the owner of both the partition I'm mounting to *and* the device itself (i.e. /dev/hdd1). This makes no difference.
Given that the directory I'm mounting to is /mnt/montague and the partition I'm mounting is /dev/hdd1, what line do I want in fstab so that any user can both mount and read & write to the partition (or, perhaps better, only 'iu' (500))? Also, if I need to change the attributes of the device and/or folder, what changes must I make?
[iu@localhost iu]$ ls -l /mnt/
total 32
drwxr-xr-x 2 root root 4096 Nov 16 14:55 cdrom
drwxr-xr-x 2 root root 4096 Nov 16 14:55 cdrom1
drwxr-xr-x 2 root root 4096 Nov 21 17:36 data
drwxr-xr-x 2 root root 4096 Nov 16 14:55 floppy
drwxr-xr-x 2 iu iu 4096 Nov 21 17:55 montague
drwxr-xr-x 2 root root 4096 Nov 18 18:25 ramdrive
drwxr-xr-x 2 iu iu 4096 Nov 21 17:55 russell
drwxr-xr-x 2 iu iu 4096 Nov 21 17:55 tarski
Note that I have two other hdd partitions that I didn't mention that I want to mount to /mnt/tarski and /mnt/russell.
When mounted, the owner and group for each of the iu-owned partitions changes to root. I can mount/unmount any of these partitions from the desktop, but not with normal user permissions from the shell. My fstab file is currently as follows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.