shire Posted October 23, 2010 Share Posted October 23, 2010 Hi! I generated a user share on my array called "movies". When I try to access it from my Mac I only see this folder using SMB. Via FTP it only shows me "disk1" and "Users". Any hints? Bye. Link to comment
Joe L. Posted October 23, 2010 Share Posted October 23, 2010 Hi! I generated a user share on my array called "movies". When I try to access it from my Mac I only see this folder using SMB. Via FTP it only shows me "disk1" and "Users". Any hints? Bye. All user shares are under "users" You'll see it as users/movies. in ftp you can change directory to it. Joe L. Link to comment
shire Posted October 23, 2010 Author Share Posted October 23, 2010 Hi! No. I tried it with Transmit and FileZilla. When I connect to "192.168.1.67" via FTP this folder is empty. When I connect via SMB MacOSX shows me "movies" as volume on this IP and I can mount it. This is a picture of me share setup: Bye. Link to comment
shire Posted October 24, 2010 Author Share Posted October 24, 2010 Hi! Can it be possible that user shares are not accessible in general using FTP? I get access to the user share using SMB without problems: smb://xxx.xxx.x.xxx/movies Using FTP I don't find the share folder under /disk1 /user Bye. Link to comment
shire Posted November 4, 2010 Author Share Posted November 4, 2010 Hi! The problem still persists. So far I could figure out, that unRAID is the problem. Here is the logfile of FileZilla trying to connect to the user share: FileZilla wrote the logfile in German...but the important part is: Antwort: 226 Transfer done (but failed to open directory). Status: Verbinde mit 192.168.1.67:21... Status: Verbindung hergestellt, warte auf Willkommensnachricht... Antwort: 220 (vsFTPd 2.0.5) Befehl: USER root Antwort: 331 Please specify the password. Befehl: PASS Antwort: 230 Login successful. Befehl: SYST Antwort: 215 UNIX Type: L8 Befehl: FEAT Antwort: 211-Features: Antwort: EPRT Antwort: EPSV Antwort: MDTM Antwort: PASV Antwort: REST STREAM Antwort: SIZE Antwort: TVFS Antwort: 211 End Status: Verbunden Status: Empfange Verzeichnisinhalt... Befehl: PWD Antwort: 257 "/" Befehl: TYPE I Antwort: 200 Switching to Binary mode. Befehl: PASV Antwort: 227 Entering Passive Mode (192,168,1,67,244,251) Befehl: LIST Antwort: 150 Here comes the directory listing. Antwort: 226 Directory send OK. Status: Anzeigen des Verzeichnisinhalts abgeschlossen Status: Empfange Verzeichnisinhalt... Befehl: CWD user Antwort: 250 Directory successfully changed. Befehl: PWD Antwort: 257 "/user" Befehl: PASV Antwort: 227 Entering Passive Mode (192,168,1,67,68,144) Befehl: LIST Antwort: 150 Here comes the directory listing. Antwort: 226 Transfer done (but failed to open directory). Status: Anzeigen des Verzeichnisinhalts abgeschlossen Status: Empfange Verzeichnisinhalt... Befehl: CWD /user0 Antwort: 250 Directory successfully changed. Befehl: PWD Antwort: 257 "/user0" Befehl: PASV Antwort: 227 Entering Passive Mode (192,168,1,67,137,4) Befehl: LIST Antwort: 150 Here comes the directory listing. Antwort: 226 Transfer done (but failed to open directory). Status: Anzeigen des Verzeichnisinhalts abgeschlossen Status: Empfange Verzeichnisinhalt... Befehl: CWD /disk1 Antwort: 250 Directory successfully changed. Befehl: PWD Antwort: 257 "/disk1" Befehl: PASV Antwort: 227 Entering Passive Mode (192,168,1,67,251,183) Befehl: LIST Antwort: 150 Here comes the directory listing. Antwort: 226 Transfer done (but failed to open directory). Status: Anzeigen des Verzeichnisinhalts abgeschlossen Status: Empfange Verzeichnisinhalt... Befehl: CWD /cache Antwort: 250 Directory successfully changed. Befehl: PWD Antwort: 257 "/cache" Befehl: PASV Antwort: 227 Entering Passive Mode (192,168,1,67,114,225) Befehl: LIST Antwort: 150 Here comes the directory listing. Antwort: 226 Transfer done (but failed to open directory). Status: Anzeigen des Verzeichnisinhalts abgeschlossen Which means that FileZilla failed to open the directory. My best gues would be that unRAID don't allow me to see what is inside. But where can I change it?? Thanks. Bye. Link to comment
fishface Posted November 4, 2010 Share Posted November 4, 2010 Traditionally, root access was always blocked for FTP on many Linux distro's, unRAID my differ in this respect, but might be a possible cause. Try creating a user and accessing via the new user and check permissions. Link to comment
shire Posted November 4, 2010 Author Share Posted November 4, 2010 Hi! Here we go: drwx------ 5 root root 128 Nov 3 08:09 cache/ drwx------ 5 root root 104 Nov 2 10:28 disk1/ drwx------ 1 root root 128 Nov 3 08:09 user/ drwx------ 1 root root 104 Nov 2 10:28 user0/ drwx------ 1 root root 416 Nov 3 23:15 movies/ Whatever that means.;-) Bye. Link to comment
fishface Posted November 5, 2010 Share Posted November 5, 2010 It means on root has access to those shares. Have you read this: http://wiki.filezilla-project.org/FAQ ? If you are using a software firewall on the connecting client, check the correct ports are open (port 21). Create a user share and connect as that user and see if it works. Link to comment
shire Posted November 5, 2010 Author Share Posted November 5, 2010 Hi! I deactivated the firewall on my Mac and also LittleSnitch. Between the Mac and the unRAID-Server is just a switch. So nothing should block the connection. Unfortunately I'm getting the same results. Using root and FileZilla: Status: Verbinde mit 192.168.1.67:21... Status: Verbindung hergestellt, warte auf Willkommensnachricht... Antwort: 220 (vsFTPd 2.0.5) Befehl: USER root Antwort: 331 Please specify the password. Befehl: PASS *********** Antwort: 230 Login successful. Befehl: SYST Antwort: 215 UNIX Type: L8 Befehl: FEAT Antwort: 211-Features: Antwort: EPRT Antwort: EPSV Antwort: MDTM Antwort: PASV Antwort: REST STREAM Antwort: SIZE Antwort: TVFS Antwort: 211 End Status: Verbunden Status: Empfange Verzeichnisinhalt... Befehl: PWD Antwort: 257 "/" Befehl: TYPE I Antwort: 200 Switching to Binary mode. Befehl: PASV Antwort: 227 Entering Passive Mode (192,168,1,67,191,168) Befehl: LIST Antwort: 150 Here comes the directory listing. Antwort: 226 Directory send OK. Status: Anzeigen des Verzeichnisinhalts abgeschlossen Status: Empfange Verzeichnisinhalt... Befehl: CWD user Antwort: 250 Directory successfully changed. Befehl: PWD Antwort: 257 "/user" Befehl: PASV Antwort: 227 Entering Passive Mode (192,168,1,67,75,184) Befehl: LIST Antwort: 150 Here comes the directory listing. Antwort: 226 Transfer done (but failed to open directory). Status: Anzeigen des Verzeichnisinhalts abgeschlossen Using admin (another user with a name and password): Status: Verbinde mit 192.168.1.67:21... Status: Verbindung hergestellt, warte auf Willkommensnachricht... Antwort: 220 (vsFTPd 2.0.5) Befehl: USER admin Antwort: 331 Please specify the password. Befehl: PASS *********** Antwort: 230 Login successful. Befehl: SYST Antwort: 215 UNIX Type: L8 Befehl: FEAT Antwort: 211-Features: Antwort: EPRT Antwort: EPSV Antwort: MDTM Antwort: PASV Antwort: REST STREAM Antwort: SIZE Antwort: TVFS Antwort: 211 End Status: Verbunden Status: Empfange Verzeichnisinhalt... Befehl: PWD Antwort: 257 "/" Befehl: TYPE I Antwort: 200 Switching to Binary mode. Befehl: PASV Antwort: 227 Entering Passive Mode (192,168,1,67,24,77) Befehl: LIST Antwort: 150 Here comes the directory listing. Antwort: 226 Directory send OK. Status: Anzeigen des Verzeichnisinhalts abgeschlossen Status: Empfange Verzeichnisinhalt... Befehl: CWD user Antwort: 250 Directory successfully changed. Befehl: PWD Antwort: 257 "/user" Befehl: PASV Antwort: 227 Entering Passive Mode (192,168,1,67,58,62) Befehl: LIST Antwort: 150 Here comes the directory listing. Antwort: 226 Transfer done (but failed to open directory). Status: Anzeigen des Verzeichnisinhalts abgeschlossen Getting a bit crazy.... Bye. Link to comment
shire Posted November 5, 2010 Author Share Posted November 5, 2010 Hi! I just created another user share (testuser). Accessing the array with any user (admin, root). Results in the same error... Bye. Link to comment
shire Posted November 5, 2010 Author Share Posted November 5, 2010 Hi! The vsftpd.conf: root@unRAID:/etc# less vsftpd.conf WARNING: terminal is not fully functional # vsftpd.conf for unRAIDRN) # 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 # # 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 Bye. Link to comment
fishface Posted November 5, 2010 Share Posted November 5, 2010 Is that the default vsftpd.conf file as supplied with unRAID? I don't have access to mine at the moment, but the vsftpd.conf file you have posted here is not very secure - I can post a sample of a more secure conf file in a bit. If you make any changes to the vsftpd.conf you need to restart the vsftpd daemon to make them stick. Link to comment
shire Posted November 6, 2010 Author Share Posted November 6, 2010 Hi! Is that the default vsftpd.conf file as supplied with unRAID? I don't have access to mine at the moment, but the vsftpd.conf file you have posted here is not very secure - I can post a sample of a more secure conf file in a bit. If you make any changes to the vsftpd.conf you need to restart the vsftpd daemon to make them stick. This is the stock "vsftp.conf" of unRAID. Generally I have done nothing special to the setup. I installed unRAID onto my USB-Stick and plugged it into my server. That's it. I only changed a few settings by the use of the standard GUI. Nothing more. That's why I can't understand that it works for everybody except ME. Your "vsftp.conf-File" would be great! Bye. Link to comment
fishface Posted November 6, 2010 Share Posted November 6, 2010 Copy of my vsftd.conf file. May not work in your particular environment, use at your own risk, and read the man pages. Things to note, I had slightly different requirements and this is reflected in the vsftd.conf file. I configured to be not anonymous, for my purpose I created a new ‘FTP’ user for each account, in other words, each person I wanted to allow access to the FTP server was given a unique username and password. I was using CentOS, with just the bare essentials to run a FTP service; it has been running well for 6 years. The users were locked into their home directory, and had no SSH/shell. I used the ‘chroot xxx' to block/allow users. I disabled root SSH access and changed the SHH port – always a good idea on a remote box – probably not relevant in your case. At some point I had an issue that FTP accounts could not change to home directory they received the following error ‘500 OOPS: cannot change directory:/home/someuser’ – to fix this I did the following as root – ‘getsebool –a |grep ftp’ display the current vsftd.conf , then to change it ‘setsebool –P ftp_home_dir on’- this might be relevant in your case I added min and max port ranges to allow it to work in conjunction with the firewall, might be worth checking this in your vsftd.conf file. I changed the default logging, all log file were also SCP copied over to another server every 24hrs, along with other useful stuff. • anonymous_enable=NO • local_enable=YES • write_enable=YES • local_umask=002 • dirmessage_enable=YES • connect_from_port_20=YES • local_umask=002 • chroot_list_enable=YES • chroot_local_user=YES • chroot_list_file=/etc/vsftpd.chroot_list • pam_service_name=vsftpd • userlist_enable=YES • listen=YES • tcp_wrappers=YES • background=YES • xferlog_file=/var/log/vsftpd.log • xferlog_enable=YES • #xferlog_std_format=NO (or comment out) • dual_log_enable=YES • pasv_min_port=9000 • pasv_max_port=9999 • ftpd_banner=Welcome to the Mt_FTP FTP service. Link to comment
shire Posted November 10, 2010 Author Share Posted November 10, 2010 Hi! Thanks fishface! ...and my special thanks go out to: Joe L. http://lime-technology.com/forum/index.php?topic=2138.0 It was a permission issue. Now I can copy my files via FTP without any issues. Yeah! Bye. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.