I'd like to mount a remote directory through sshfs
on my Debian machine, say at /work
. So I added my user to fuse
group and I run:
sshfs [email protected]:/remote/dir /work
and everything works fine. However it would be very nice to have the directory mounted on boot. So I tried the /etc/fstab
entry given below:
sshfs#[email protected]:/remote/dir /work fuse user,_netdev,reconnect,uid=1000,gid=1000,idmap=user 0 0
sshfs
asks for password and mounts almost correctly. Almost because my regular user
has no access to the mounted directory and when I run ls -la /
, I get:
d????????? ? ? ? ? ? work
How can I get it with right permissions trough fstab?
uid
andgid
parameters should set ownership of the directory after mount, but apperntly they do something else. Could you be so kind to explain, what? – Kiloton