You are not logged in.

#1 2014-01-22 20:38:04

marko2010
Member
Registered: 2010-04-17
Posts: 70

No write permissions on external drive when mounted using autofs

I'm trying to mount an external drive (connected via eSATA)  formatted with ext4 using autofs. It mounts very easily using autofs, but I  have no write permissions once its mounted.

I'm using these mount option in my autofs.master:

/removable        /etc/autofs/auto.misc    --timeout=60,defaults

and when the drive is mounted on "/removable" folder I am seeing these permissions:

drwxr-xr-x 15 git  users 4096 Jan  5 03:01 external_drive

...which is a little odd, since I never specified that the "git" use own that "external_drive" folder

...in case it matters, I am specifying a file system type in my auto.misc:

external_drive     -fstype=ext4            UUID=721cd1cb-03b3-529c-94f5-2843y55bcie1c

Offline

#2 2014-01-22 20:45:13

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,182

Re: No write permissions on external drive when mounted using autofs

I was using autofs for nfs before and I seem to remember that the entire directory hierarchy needs to have the same permission access for your user.

So in other words, you need to have write access to all the parent folders as well. I am not sure why git owns it, but you if you are accessing it with a different username then you need to provide write access to the users group (assuming your username is in the users group)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2014-01-22 21:27:49

marko2010
Member
Registered: 2010-04-17
Posts: 70

Re: No write permissions on external drive when mounted using autofs

I just tested changing the owner of the "/removable" folder to "marko"  (the user I am logged in as) and the group to "users". But still no success. It mounts right away, but with the same wrong permissions.

Offline

Board footer

Powered by FluxBB