You are not logged in.

#1 2019-07-25 09:49:38

ottoshmidt
Member
From: Tbilisi, Georgia
Registered: 2010-04-03
Posts: 30

sshfs automount wrong permissions

Hi, I'm trying to automount remote drive via sshfs with ordinary user permissions by an entry in /etc/fstab. I try to follow the instructions in SSHFS#Secure_user_accessurland have this:

centos@omzeniumsdk:/home/centos  /home/oto/centos  fuse.sshfs noauto,x-systemd.automount,_netdev,user,idmap=user,identityfile=/home/oto/.ssh/id_rsa,default_permissions,allow_other,uid=1000,gid=1000 0 0

But the directory is still mounted with root ownership on system startup. Am I missing something?

If I unmount the drive and then run

mount ~/centos

with normal user, everything is fine.

Last edited by ottoshmidt (2019-07-25 09:51:26)

Offline

Board footer

Powered by FluxBB