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.
I'm trying to mount an ext3 drive as my user. I can get this to work by adding the "user" option to mount or fstab.
But if I look at the permissions of the directory, the owner and group is root meaning that I can not create files in the directory.
I'm not sure, but maybe adding umask=000 next to user in /etc/fstab (seperated by a comma so user,umask=000) should mount the drive with the permisions 777 so should be writeable by everyone, otherwise you can mount it with gid or uid options I think, I can't really remember so try google or wait for another reply
All of that would work perfectly if the Avatar33 was mounting an vfat or fat disk. However, he is asking about ext3 :-)
With ext3, /mnt/extDrive will get the permissions and ownership of the root of the floppy. So you first need to mount the floppy, then assign ownership of the root of the floppy to you (using chown), and then all will be fine.
Originally posted by DrStoney
Dunno if I read that wrong or there was something in my coffee or what...
So what tom said, as root do something like:
chmod 777 /dev/hdb1
This will add nothing, since mount is suid root.
Quote:
mkdir /stuff
and in fstab, /dev/hdb1 /stuff ext3 auto,user,owner,rw 0 0
the owner option allows the owner of the device file (i.e. /dev/hdb1) to mount the volume. So in order for this to be useful, you have to do a chown on /dev/hdb1. However, since you also specified user, which allows any user to mount the volume, the owner option doesn't add much.
To make matters worse, all of this still won't guarantee that the user is able to write in /stuff. For that, you need an addtional chown on /stuff, after mounting it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.