Author Topic: Not being able to see files via ftp (vsftpd) on unRaid 4.5  (Read 2637 times)

Offline abeta

  • Sr. Member
  • ****
  • Posts: 254
Not being able to see files via ftp (vsftpd) on unRaid 4.5
« on: January 04, 2010, 10:33:49 AM »
I apologize is this is obvious, but I couldn't find an answer while searching this forum and google.

So I've been running unRAID 4.5 for a week or so now and was manually mapping a drive to copy all of my files which worked great.

Since it's been running nicely for me, I decided to look into other things like ftp. vsftpd is installed and running as part of unRaid 4.5. I initially was able to connect but couldn't see any files and did a search on this forum which led me to this thread:

http://lime-technology.com/forum/index.php?topic=2138.0

Issuing the 2 commands suggested by Joe L. has me seeing the files correctly it appears:

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

Sooo...my question is this. If I use Samba and a drive mapping to move files, do I need to run these 2 commands after every copy from my machines? Is there a way to move files via Samba *OR* ftp so that they're visible to each other without any need to run the above commands?

I'm confused by the nuances of how copying files via Samba makes it unviewable by FTP as I'm logged in as root on ftp and would think I should be able to see all of the files?

Thx!

Offline Joe L.

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 17816
Re: Not being able to see files via ftp (vsftpd) on unRaid 4.5
« Reply #1 on: January 04, 2010, 10:40:18 AM »
I apologize is this is obvious, but I couldn't find an answer while searching this forum and google.

So I've been running unRAID 4.5 for a week or so now and was manually mapping a drive to copy all of my files which worked great.

Since it's been running nicely for me, I decided to look into other things like ftp. vsftpd is installed and running as part of unRaid 4.5. I initially was able to connect but couldn't see any files and did a search on this forum which led me to this thread:

http://lime-technology.com/forum/index.php?topic=2138.0

Issuing the 2 commands suggested by Joe L. has me seeing the files correctly it appears:

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

Sooo...my question is this. If I use Samba and a drive mapping to move files, do I need to run these 2 commands after every copy from my machines? Is there a way to move files via Samba *OR* ftp so that they're visible to each other without any need to run the above commands?

I'm confused by the nuances of how copying files via Samba makes it unviewable by FTP as I'm logged in as root on ftp and would think I should be able to see all of the files?

Thx!

This is one of the issues Tom is working through as he deals with the permissions mapping needs of SAMBA, NFS, FTP, and other methods of connectivity.   Expect things to change in the future.  Unfortunately,  his original decisions for SAMBA don't easily lend themselves to the various protocols.   For now, yes, I think you'll need to run the commands.

« Last Edit: January 04, 2010, 10:45:49 AM by Joe L. »

Offline abeta

  • Sr. Member
  • ****
  • Posts: 254
Re: Not being able to see files via ftp (vsftpd) on unRaid 4.5
« Reply #2 on: January 04, 2010, 10:45:03 AM »
I apologize is this is obvious, but I couldn't find an answer while searching this forum and google.

So I've been running unRAID 4.5 for a week or so now and was manually mapping a drive to copy all of my files which worked great.

Since it's been running nicely for me, I decided to look into other things like ftp. vsftpd is installed and running as part of unRaid 4.5. I initially was able to connect but couldn't see any files and did a search on this forum which led me to this thread:

http://lime-technology.com/forum/index.php?topic=2138.0

Issuing the 2 commands suggested by Joe L. has me seeing the files correctly it appears:

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

Sooo...my question is this. If I use Samba and a drive mapping to move files, do I need to run these 2 commands after every copy from my machines? Is there a way to move files via Samba *OR* ftp so that they're visible to each other without any need to run the above commands?

I'm confused by the nuances of how copying files via Samba makes it unviewable by FTP as I'm logged in as root on ftp and would think I should be able to see all of the files?

Thx!

This is one of the issues Tom is working through as he deals with the permissions mapping needs of SAMBA, NFS, FTP, and other methods of connectivity.   Expect things to change in the future.  Unfortunately,  his original decisions for SAMBA don't easily lend themselves to the various protocols.   For now, yes, I think you'll need to run the commands.

Thank you. Any idea if this is supposedly part of unRaid 5.x or somewhere further down the road? I haven't found an unRaid roadmap to figure out when things are happening.

Offline Joe L.

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 17816
Re: Not being able to see files via ftp (vsftpd) on unRaid 4.5
« Reply #3 on: January 04, 2010, 10:46:18 AM »
There is hope that soon this will change as per his last release notes describing the future 5.0 series of unRAID:
Quote from: from the 4.5final release notes
What's next then?  I've already started work on the 5.0 release, with two main goals:

1. Redesign of how unRAID manages share and file secruity.  In the beginning, the only protocol supported was SMB (Windows Networking).  Actually the entire design of unRAID OS is optimized to be a NAS in a Windows world.  As a result, and to speed development, unRAID OS relies on Samba for most security purposes.  The problem with this approach is that other protocols, especially AFP and NFS, do not integrate smoothly.  This has turned out to be a big problem & so it will be addressed.

Offline dreamcatcher

  • Newbie
  • *
  • Posts: 2
Re: Not being able to see files via ftp (vsftpd) on unRaid 4.5
« Reply #4 on: April 22, 2012, 01:15:15 AM »
I did run the commands:
find /mnt/user -type d -exec chmod 755 {} \;
find /mnt/user -type f -exec chmod 700 {} \;

And it made my subdirectories and files appear in my FTP client.

However, after this command I can no longer access files from OSX using Samba. If I try to write a new file I am just prompted for my OSX password and after entering it I am told I don't have permission...

EDIT: I am running unRAID v. 5.0b14