FTP stopped working

Ptera

Explorer
Joined
May 7, 2014
Messages
65
I has a working ftp account that stopped working - did not find out till today when I needed to ftp some files to some radio equipment.
Apr 2 11:36:33 nas su: _secure_path: cannot stat /mnt/PteraNas1/backups/FTP/ftpuser//.login_conf: Permission denied
Apr 2 11:36:33 nas su: _secure_path: cannot stat /mnt/PteraNas1/backups/FTP/ftpuser//.login_conf: Permission denied
Apr 2 11:36:35 nas smbd: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 2 11:37:16 nas proftpd[15698]: 127.0.0.1 - ProFTPD killed (signal 15)
Apr 2 11:37:16 nas proftpd[15698]: 127.0.0.1 - ProFTPD 1.3.6 standalone mode SHUTDOWN
Apr 2 11:39:13 nas proftpd[19026]: 127.0.0.1 - ProFTPD 1.3.6 (stable) (built Thu Feb 14 2019 18:53:20 UTC) standalone mode STARTUP
Apr 2 11:39:48 nas smbd: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 2 11:39:56 nas proftpd[19922]: 127.0.0.1 () - notice: unable to use DefaultRoot '~/' [resolved to '/mnt/PteraNas1/backups/FTP/ftpuser/']: Permission denied
Apr 2 11:39:56 nas proftpd[19922]: 127.0.0.1 (]) - chroot to '~/' failed for user 'ftpuser': No such file or directory
Apr 2 11:39:56 nas proftpd[19922]: 127.0.0.1 (]) - error: unable to set DefaultRoot directory

I have tried many different things like removing users and groups - creating new groups users - but still will not work.
I just see directories being made every time I create a new user but all I see is the same thing above repeated over and over for each user.

OS Version:
FreeNAS-11.2-U2
(Build Date: Feb 14, 2019 20:8)

Going to go create an FTP server some where else so I can get this done. Still would like this to work though.
 
Joined
Jan 7, 2015
Messages
1,155
This is what caught me up, granted have not used ftp since owncloud/nextcloud became en vogue.

"Allow any local user to log in. By default, only members of the ftp group are allowed to log in."
 

Ptera

Explorer
Joined
May 7, 2014
Messages
65
That was already set
 

Attachments

  • nasftpsnip.png
    nasftpsnip.png
    17.6 KB · Views: 360
Joined
Jan 7, 2015
Messages
1,155
Apr 2 11:39:56 nas proftpd[19922]: 127.0.0.1 () - notice: unable to use DefaultRoot '~/' [resolved to '/mnt/PteraNas1/backups/FTP/ftpuser/']: Permission denied
Apr 2 11:39:56 nas proftpd[19922]: 127.0.0.1 (]) - chroot to '~/' failed for user 'ftpuser': No such file or directory
Apr 2 11:39:56 nas proftpd[19922]: 127.0.0.1 (]) - error: unable to set DefaultRoot directory

What is this users home directory? Does it actually exist? Is this user a member of the group ftp? Does the ftp group own the directory /mnt/PteraNas1/backups/FTP/? You have permissions issues no doubt. Just few more things to check. I have verified mine works still.
 

Ptera

Explorer
Joined
May 7, 2014
Messages
65
/mnt/PteraNas1/backups/FTP/ftpuser
yes
yes
drwxr-xr-x 7 root nobody 7 Apr 2 11:05 FTP
drwxr-xr-x 2 ftpuser ftpuser 10 Apr 2 11:05 ftpuser

should I try to change what was setup by freenas gui?
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
This is not enough permission wise, you need check each element of the path, if ftpuser has 'r' and 'x' rights.
 

LOttO

Cadet
Joined
Jun 28, 2020
Messages
3
This is not enough permission wise, you need check each element of the path, if ftpuser has 'r' and 'x' rights.
I understand where this is going but do not fully get it. I'll lay out what I have really quickly and maybe you can help me understand?

I have my main pool with my main dataset placed inside. I originally had an FTP setup in that dataset along with SMB and my plex server. All was fine until I borked my permissions and I can't figure out what I did.

I changed the FTP directory for the user to a new dataset inside the pool and changed the ownership of the dataset to the FTP group and user. The new dataset is at the top of the datastack or tree so I shouldn't have any other permissions blocking it correct?

Althought I have done this and there is no other dataset above it, I still cannot get the account to connect unless it is a part of the wheel group.

I understand this is simply a permissions issue but I haven't been able to figure out where I wen't wrong.

I am running FreeNAS-11.3-U3.2 and the built in PROFTPD service.
 

vilkoivshchi

Cadet
Joined
Jul 10, 2020
Messages
1
Hi.
I faced the same problem today. I've add new user and another users no more can't loging in. I have ftp with users (for example) 1,2,3, they have home directories /mnt/data/1, /mnt/data/2, /mnt/data/3, chmod 0755. But /mnt/data was chmod 0750. When i set chmod /mnt/data to 0755, then everything worked out.
 
Top