Sunday, October 23, 2016

Re: [LINUX_Newbies] Problem to directory sftp directory

 

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)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

No comments:

Post a Comment