You are not logged in.
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
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)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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