sftp help needed


Recommended Posts

Hi

 

I setup sftp according this topic http://lime-technology.com/forum/index.php?topic=6048.0

sleep 30

mkdir -p /var/ftproot/Movie

mkdir -p /var/ftproot/TV

mkdir -p /var/ftproot/Music

echo 'anon_umask=0022' >> /etc/vsftpd.conf

echo 'local_root=/var/ftproot' >> /etc/vsftpd.conf

mount --bind  /mnt/user/Media/Video/Movie    /var/ftproot/Movie

mount --bind  /mnt/user/Media/Video/TV        /var/ftproot/TV

mount --bind  /mnt/user/Media/Music          /var/ftproot/Music

It works and I can access those folders and nothing else.

But I have 2 problems.

Visibility of the files on the server and I know to use the following commands

for directories visibility use:

find /mnt/user -type d -exec chmod 755 {} \;

 

and for files within a directory use:

find /mnt/user -type f -exec chmod 700 {} \;

But I have to do that every time after copying to the server.

Is there a fix?

And with fillezila I can only upload a file not download?

 

Rob

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.