Mounting ext3 partition with rw permissions for non-root user
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Mounting ext3 partition with rw permissions for non-root user
Hi, I'm quite new to Linux and love it. But I have a small problem. I have both FC1 and FC3 installed and want to use an ext3 partition (rather than a FAT one) to share files between them. It should be in such a way that even a non-root user would be able to write to it. The entry that I added in fstab is this:
/dev/hda14 /mnt/Common1 auto noauto,users,exec,rw 0 0
The problem is that though I was able to mount it, only root has the permissions to write to it. I saw somewhere that this is because ext3 has file ownerships and permissions (while FAT doesn't have them). The uid and gid of the non-root user in both FC1 and FC3 are both 500.
So, what has to be done so that the non-root user in both FC1 and FC3 can mount the partition with rw permissions? Can somebody help me? Thanks.
Hi, I gave the entry as you said. But it didn't work. It produced the following error:
mount: wrong fs type, bad option, bad superblock on /dev/hda14,
or too many mounted file systems
I already have an FAT partition mounted using the 'umask=0000' option and it works well, granting rw permission to the non-root user. So, I removed the FAT entry and tried again. Still the problem persists. I then tried 'auto' and 'ext2'instead of 'ext3' as fs option. Still the results are the same. If I remove the 'umask' option, the filesystem mounts alright, but only root will have the write permission as I said before.
It seems as if 'umask' option work with FAT, but not with ext3.
Originally posted by ilyushin Hi, I gave the entry as you said. But it didn't work. It produced the following error:
mount: wrong fs type, bad option, bad superblock on /dev/hda14,
or too many mounted file systems
I already have an FAT partition mounted using the 'umask=0000' option and it works well, granting rw permission to the non-root user. So, I removed the FAT entry and tried again. Still the problem persists. I then tried 'auto' and 'ext2'instead of 'ext3' as fs option. Still the results are the same. If I remove the 'umask' option, the filesystem mounts alright, but only root will have the write permission as I said before.
It seems as if 'umask' option work with FAT, but not with ext3.
Hi, Thanks a lot everyone! It worked with chmod. Just one doubt. I had tried chmod 777 on this directory before. But Nautilus did'nt allow me to copy a file or create a folder in it. Then I assumed that chmod hadn't worked. Even now the problem remained. I unmounted and remounted the partition and checked again. Still the problem was there. But I was able to do these operations through the command-line (as a normal, non-root user itself). And once this 'inauguration' was done, Nautilus allowed the normal operations. It might seem funny. Is this probably a problem with Nautilus, or is there something else at work here? It appears as if an initial write on the filesystem by a normal user through the command line was necessary.
This happened in FC1. I do not know whether Konqueror or the browsers in FC3 had the same problem. I was'nt able to try it as the filesystem was already written upon and showed no problems after that. I'll try to reformat the partition and attempt it again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.