Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

2 inquiries regarding FTP please

Featured Replies

To start off with,  after reading many many posts, I recognize the risks associated with FTP...I think.

 

That being said, I just had a couple of questions regarding the usage of VSFTP

 

1.  I understand that vsftp is already set up in Unraid.  Does anything need to be amended as far as the vsftp.conf file is concerned?  And is it running my default, or do you need to issue a go command in the flash drive? 

I just cant seem to log in via ftp - transmit or ws_ftp (windows app)

 

2.  As for outside access, I want a user to have access to a particular file.  can someone pls explain how I do this?  ie:  which directory that file needs to be in?  read-only of course.

 

related to point 2 above, if i wanted to access my shares remotely for streaming purposes, is this the way to do that - via vsftp?  I dont really want to transfer the file, just access it. 

 

??? ???Sorry, trying to get up to speed on the functionality of unraid coupled with beginning unix is taking its toll....

 

Thank you very much.

  • Author

No one?  Wish someone would assist or chime in.  I didnt think this was a very complex issue.  Thanks in advance

To start off with,  after reading many many posts, I recognize the risks associated with FTP...I think.

 

That being said, I just had a couple of questions regarding the usage of VSFTP

 

1.  I understand that vsftp is already set up in Unraid.  Does anything need to be amended as far as the vsftp.conf file is concerned?  And is it running my default, or do you need to issue a go command in the flash drive? 

I just cant seem to log in via ftp - transmit or ws_ftp (windows app)

 

2.  As for outside access, I want a user to have access to a particular file.  can someone pls explain how I do this?  ie:  which directory that file needs to be in?  read-only of course.

 

related to point 2 above, if i wanted to access my shares remotely for streaming purposes, is this the way to do that - via vsftp?  I dont really want to transfer the file, just access it. 

 

??? ???Sorry, trying to get up to speed on the functionality of unraid coupled with beginning unix is taking its toll....

 

Thank you very much.

 

I'll do my best...

 

1 - What happens when you try to log in? I had to (at some point) fix the stock vsftpd.conf to make it work. I can't tell you if this bug still exists, or what versions it affected as I've had it in my go script for a while now. I also can't remember (!) what I changed. So here it is in its entirety. Trying looking for differences between it and your own /etc/vsftpd.conf and go from there :

 

# vsftpd.conf for unRAID
#
write_enable=YES
connect_from_port_20=YES
#
# No anonymous logins
anonymous_enable=NO
#
# Allow local users to log in.
local_enable=YES
local_umask=077
local_root=/mnt
check_shell=NO
anon_world_readable_only=NO
#
# All file ownership will be 'root'
guest_enable=YES
guest_username=root
anon_upload_enable=YES
anon_other_write_enable=YES
anon_mkdir_write_enable=YES
#
# Logging to syslog
syslog_enable=YES
log_ftp_protocol=NO
xferlog_enable=NO
#
# Misc.
dirmessage_enable=NO
ls_recurse_enable=YES

 

It should be running by default - certainly it is in the latest beta release.

 

2 - You'd have to fiddle with the vsftpd conf here. I can't really help. The obvious options above are write_enable=YES which you could change  to NO to make read only. How to do that per user I don't know. Also note all ftp access via unraid is mapped to the root user to keep in line with the backend file permissions. I suspect if you go trying to tinker with that you'll run into problems. You can still have individual users you've defined login though. But any / all files actions are mapped as root on the filesystem.

 

3 - I don't know what you mean by not transfer but just access the file? This largely depends on your streaming mechanism. You have the options (in order of happiness) sftp, ftp, http samba. You would need to install an httpd server to gain that transport method however.

 

My impression of the ftpd side of unraid is its a very much a quick and dirty (semi unofficial given its not listed in the web panel?) implementation to give you quick and easy access via ftp. It's not currently geared for anything more advanced. As above you could read up on the vsftpd docs and look to configure yourself but due to the root mapping this could cause problems unless you're careful.

  • Author

depends on your streaming mechanism. You have the options (in order of happiness) sftp, ftp, http samba. You would need to install an httpd server to gain that transport method however

 

Hello, and thanks for your reply.  Sorry but totally lost be there in terms of sftp, ftp, etc.  How would you go about it if you wanted to access the shares in terms of say watching a movie that is stored on my unraid box?  (presuming of course the bandwidth would allow)  Is this possible?  I dont see how ftp would work unless you downloaded the entire movie first.  Could you not stream it ? 

 

Sorry - what is httpd?  I will try and research that and see what it does and if it is what I need.  I just thought there would be quite a few that would do this.  I read a few posts where people are streaming their movies to their laptops while on the road, but it wasnt discussed how they do this so thats why Im asking. Thanks

depends on your streaming mechanism. You have the options (in order of happiness) sftp, ftp, http samba. You would need to install an httpd server to gain that transport method however

 

Hello, and thanks for your reply.  Sorry but totally lost be there in terms of sftp, ftp, etc.  How would you go about it if you wanted to access the shares in terms of say watching a movie that is stored on my unraid box?  (presuming of course the bandwidth would allow)  Is this possible?  I dont see how ftp would work unless you downloaded the entire movie first.  Could you not stream it ? 

 

Sorry - what is httpd?  I will try and research that and see what it does and if it is what I need.  I just thought there would be quite a few that would do this.  I read a few posts where people are streaming their movies to their laptops while on the road, but it wasnt discussed how they do this so thats why Im asking. Thanks

 

You're initial question was asking how to stream externally outwith your lan which is a very different question.

 

For sharing internally unraid is entirely geared towards using samba. Which will just emulate 'windows shares' for you to access from a client.

 

Sharing externally you could still use samba - but it's not really very good for this.

 

Streaming is largely dependant on your client. All streaming is doing is opening a file for reading and then playing back as it reads (usually with client side buffering to aid bandwidth issues). The transport at the back end largely doesn't matter - there is no reason you could not 'stream' via ftp but your playback client would need to support streaming from ftp.

 

My list was geared towards security based on external access.

 

sftp via ssh will encrypt all traffic and is the most secure, ftp has the potential to be secure and already exists in skeleton form in unraid, httpd(s) is just a web server which unraid does not include as stock but is very easy to install with the help of the forums there are also a number of 'streaming' technologies you could layer on top. Samba is my last option as its not hugely a good idea to open it to the world but if you wanted you could easily do so and just access your media this way.

 

I'm not sure I can help much more as I don't have any interest in playing back media from my unraid box 'off network' as I don't have the external bandwidth to do so. If I did have the external bandwidth I would probably use a combination of ssh mounted as a drive on the cilent or ssh portforwarding to samba to access media securely and ensure my playback client allowed me to set a small read buffer (VLC can do this) to allow for network blips.

Try looking at a slingbox solution. Excellent external streamer.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.