Monday, October 24, 2016

Re: [LINUX_Newbies] Problem to directory sftp directory

 

On Mon, Oct 24, 2016 at 03:15:06PM +1100, cs@zip.com.au [LINUX_Newbies] wrote:
> 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

Also, the parent directory for sftp is usually owned by root. Then, inside
that directory, put a directory owned by the sftp user.

https://www.centos.org/forums/viewtopic.php?t=46666#p198688

is a good post on setting up sftp.

--
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

__._,_.___

Posted by: Scott <scottro@nyc.rr.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

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