You are not logged in.

#1 2012-09-25 18:47:56

kaipee
Member
From: Belfast, UK
Registered: 2012-07-07
Posts: 214

[SOLVED] Strange sshfs automount problem

Hi guys, I've had a thorough read of the wiki and a search around and can't find anything relating to my problem. Even asked on IRC without much help.

I am getting told I do not have permissions on the sshfs mount.

/etc/fstab

kaipee@192.168.0.10:/mnt/Files /mnt/Files fuse.sshfs port=44,x-systemd.automount,users,exec,rw,idmap=user,reconnect,follow_symlinks     0 0

server permissions on 192.168.0.10:/mnt/

drwxrws---  1 http   http           4096 Jul 22 06:34 Files

my local user groups

sys adm disk lp wheel uucp log http games lock network video audio optical storage power users networkmanager android adbusers dialout

So I am in http group, which has rwx on /mnt/Files, yet I keep getting told I do not have permissions on that mount ???

[kaipee@zoostorm-arch~]$*ls -al /mnt/*
ls: cannot access /mnt/Files: Permission denied
total 16
drwxr-xr-x  5 root   root           4096 Sep 24 17:17 .
drwxr-xr-x 21 root   root           4096 Sep 13 23:54 ..
d?????????  ? ?      ?                 ?            ? Files
drwxrwx---  5 kaipee networkmanager 4096 Jul 24 21:12 Files_Local
drwxrwxr-x  2 root   users          4096 Sep 24 17:17 sshfs

[kaipee@zoostorm-arch~]$*sudo ls -al /mnt/*
total 20
drwxr-xr-x  5 root   root           4096 Sep 24 17:17 .
drwxr-xr-x 21 root   root           4096 Sep 13 23:54 ..
drwxrws---  1 http   http           4096 Jul 22 06:34 Files
drwxrwx---  5 kaipee networkmanager 4096 Jul 24 21:12 Files_Local
drwxrwxr-x  2 root   users          4096 Sep 24 17:17 sshfs

To weird things up a little more - if I SSH into the server with the same user as in fstab (kaipee) then I have full control....and even stranger, while changed to su on my local machine I cannot unmount (umount or fusermount -u)  /mnt/Files  ??? wtf ?

Last edited by kaipee (2012-09-28 17:10:26)

Offline

#2 2012-09-25 19:17:07

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED] Strange sshfs automount problem

Here's my sshfs mount fstab line. I'm not exactly sure about your issue, but maybe the allow_other directive is the key?

firecat53@ip.of.homeserver:/mnt/media                /mnt/media      fuse.sshfs      noauto,x-systemd.automount,users,idmap=user,Port=22,IdentityFile=/home/firecat53/.ssh/id_rsa,allow_other,reconnect            0       0
12:14:31 $ ls -l /mnt
total 12
drwxrwxr-x 6 root users 4096 Aug 19 12:08 backup
drwxrwxr-x 1 root users 4096 Apr 11 12:05 media
12:16:29 $ ssh homeserver
Last login: Tue Sep 25 11:31:17 2012 from *.comcast.net
firecat53@homeserver:~ $ ls -l /mnt
total 12
drwxr-xr-x 14 root users 4096 Sep  3 21:15 backup
drwxrwxr-x  7 root users 4096 Apr 11 12:05 media

Hope that helps!
Scott

Last edited by firecat53 (2012-09-25 19:18:10)

Offline

#3 2012-09-28 17:08:34

kaipee
Member
From: Belfast, UK
Registered: 2012-07-07
Posts: 214

Re: [SOLVED] Strange sshfs automount problem

Hey firecat53,

It seems to be working now without any problems. Now I just need to figure out the correct users/groups and permissions for my home/web server (I still can't get my head around it lol)

/etc/fstab

kaipee@192.168.0.10:/mnt/Files /mnt/Files fuse.sshfs noauto,x-systemd.automount,users,idmap=user,Port=44,IdentityFile=/home/kaipee/.ssh/id_rsa,allow_other,reconnect  0  0
ls -al /mnt/
drwxrws---  1 http   http           4096 Sep 28 17:55 Files
ssh kphmsrv
ls -al /mnt/
drwxrws--- 19 http http           4096 Sep 28 17:55 Files

Offline

Board footer

Powered by FluxBB