LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-03-2013, 04:58 AM   #1
franjo124
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 0
Angry sudo write denied to remote file system mounted with sshfs ubuntu 13.04


Hi
I'm using Ubuntu 13.04 (raring ringtail) and wish to make backup of my system using Simple Backup. For backup target I desided to use My Book Live Duo (Western Digital).
Mounting disk system is success using

sshfs root@xxx.xxx.xxx.xxx:/DataVolume/shares/MyUser /var/backup

Problem :
As user I can read and write the mont point.
touch /var/backup/xxx - OK
but
sudo touch /var/backup/xxx == PERMISSION DENIED

Simple Backup software uses this command to start :
gksu --description /usr/share/applications/sbackup-config-su.desktop /usr/bin/sbackup-config-gtk
and returns some strange errors
"Unable to create directory for testing purpose: Directory already exists." ==> /var/backup is mount point or soft link to /mnt/backup
or
"The specified target directory /var/backup was not found" if I remove soft link or do umount /var/backup.
It works fine with phisical directory /var/backup

Thanks
 
Old 06-03-2013, 09:37 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
By default only the user has read/write permissions. You can use the options allow_other or allow_root to allow others access along with the option default_permissions which will enable permission checking by the kernel.
 
Old 06-04-2013, 02:14 AM   #3
franjo124
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by michaelk View Post
By default only the user has read/write permissions. You can use the options allow_other or allow_root to allow others access along with the option default_permissions which will enable permission checking by the kernel.
I'm not working with SELinux (I read somewhere that MBL works on SELinux Debian) - never had to - I'm familiar with old fashion permissions with chmod. So I would appreciate more descriptiveness ...

Thanks
 
Old 06-04-2013, 08:47 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
In a nutshell sshfs creates a virtual file system that works via the SSH sftp protocol.

I also forgot to mention that you need to add user_allow_other to the /etc/fuse.conf file if not already included. The command to allow others to access the filesystem use the following:

sshfs -o allow_other,default_permissions user@server /mount_point

However from the FAQs. "Generally it's not possible to use an sshfs mount as a "real" filesystem shared between multiple users. Some of this functionality can be enabled with the -o allow_other and -o default_permissions options, but files will not be created with the correct ownership, etc... "

http://sourceforge.net/apps/mediawik...title=SshfsFaq

Also see options for sshfs
http://linux.die.net/man/1/sshfs
 
Old 06-12-2013, 01:27 AM   #5
franjo124
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Michaelk

You are very kind and I'm grateful for your help. I can use MyBookLive as backup target. Thanks again!

Regards and all good on this world to you

Franjo124
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why cant users access files that they own on SSHFS mounted file system? startoftext Linux - Networking 1 08-19-2011 02:28 PM
recursive write permission on cifs mounted file system mamunbabu2001 Linux - Newbie 2 05-18-2010 08:23 AM
Cannot write mounted vista file system trefin56 Linux - Newbie 5 11-22-2009 08:36 AM
Help Me!! I can't write to a mounted (ext3) partition - permission denied!! goja Linux - Newbie 4 12-28-2007 04:54 AM
LXer: Mount a remote file system through ssh Using sshfs LXer Syndicated Linux News 0 09-16-2007 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration