You are not logged in.

#1 2009-12-16 10:31:54

deicist
Member
Registered: 2009-03-17
Posts: 36

sshfs permissions issue

Hi All, hopefully someone can help with this, did a search, followed the guides etc with no luck.

I'm trying to mount a remote filesystem (on a debian box) into a directory in my home directory on my Arch box.

Fuse module is running (lsmod shows it)

permissions on the directory before I mount look like this:

drwxr-xr-x  2 paul users     4096 2009-12-15 11:28 tankftp

I do this:

sshfs root@192.168.250.170:/ /home/paul/tankftp

and now the permissions look like this:

drwxr-xr-x  1 root root      4096 2009-08-20 11:55 tankftp

which means I can't write to anything under there as anything less than root.  So, what am I doing wrong?  Do I need to mount the directory using a 'normal' user on the remote host?

mounting as a normal user on the remote host doesn't fix it, I still can't write to the mounted directory

Last edited by deicist (2009-12-16 10:43:29)

Offline

#2 2009-12-16 14:12:28

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: sshfs permissions issue

man sshfs wrote:

-o allow_other
              allow access to other users

I think this is probably what you want... although, the idea of mounting, as root, the root filesystem of another box doesn't seem like a particularly safe idea...


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#3 2009-12-16 15:01:34

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: sshfs permissions issue

Like nogoma it's a terrible idea to remotely mount the root filesystem in your pc, specially if you intend to write there. Also allowing remote root login can be a security problem.

With root I don't know but if mounting as another user I can write just fine.

drwxr-xr-x  1     501 users 4.0K Dec 16 14:54 tst_sshfs

I can write just fine inside this one, maybe with root you can't because root is also known in the local machine as root ... maybe it's a security safeguard (and a good one if it is).


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB