On 23Oct2016 20:37, DAVID Bandeira <davidcmdsbandeira@gmail.com> wrote:
>This week i take a job having the need to map um sftp as a directory in a
>linux server, I did a sshfs -o allow_other username@server:/directory
>/mountpoint but when i need to move/copy in server to share appear error:
>('cannot create regular file 'directory/file.txt':No such file or
>directory) but if I create one folder in shared directory or if a move a
>file of shared folder to server its ok, someone know what can i do?
It sounds like the "/directory" on "server" lacks execute (== "search" for
directories) permission, for the user "username". Maybe. For example:
server% ls -ld /directory
drw-rw-r-- 288 cameron cameron 9792 24 Oct 12:11 /directory
Directories need "x" permission for someone to create or otheriwse access items
in them; "x" means "search". With just "r" you can see the list of names of
things in the directory, but not access them.
This may not be precisely what is happening for you. Can you be a bit more
explicit about what actions work and what actions do not?
Also, what are the ownerships and permissions on "/directory"? Feel free to
obfuscate the actual user and group names as you're already doing.
Cheers,
Cameron Simpson <cs@zip.com.au>
Posted by: cs@zip.com.au
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (2) |
No comments:
Post a Comment