Login not working (new install)

Chadi

Explorer
Joined
Aug 24, 2012
Messages
74
Fresh install: TrueNAS-13.0-U5.2

Problem: can't connect to FTP via public IPv4 address (same as TN interface) and even local intranet 10.x IPv4. I reset the pw a few times, nothing.

FTP service is enabled and port 21.

Username Info

Code:
GID:1000
Home directory:/mnt/NAS/firstuser
Shell:/bin/sh
Email:user@domain.com
Password Disabled:false
Lock User:false
Permit Sudo:false
Microsoft Account:false
Samba Authentication:true


FTP Port 21

Code:
Command:    USER firstuser
Response:    331 Password required for firstuser
Command:    PASS ************
Response:    530 Login incorrect.
Error:    Critical error: Could not connect to server
 

Attachments

  • Screenshot 2023-08-09 164850.png
    Screenshot 2023-08-09 164850.png
    695.5 KB · Views: 68
  • Screenshot 2023-08-09 164914.png
    Screenshot 2023-08-09 164914.png
    449.7 KB · Views: 64

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Does the home directory exist?
 

Chadi

Explorer
Joined
Aug 24, 2012
Messages
74
Yes.

Code:
root@truenas[/mnt/NAS]# ls -lh
total 17
drwxr-xr-x  2 firstuser  firstuser     9B Aug  9 16:48 firstuser
drwxr-xr-x  9 root       wheel        11B Jul 30 11:36 iocage
 

Chadi

Explorer
Joined
Aug 24, 2012
Messages
74
Strange.

Code:
root@truenas[~]# service ftpd start     
Cannot 'start' ftpd. Set ftpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
root@truenas[~]# service ftpd onerestart
ftpd not running? (check /var/run/ftpd.pid).
Starting ftpd.
root@truenas[~]# service ftpd onestatus
ftpd is not running.
root@truenas[~]#
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
I have no idea for your fundamental problem with the login, sorry. Only help I can offer: service ftpd start is not how you do that on TrueNAS. Use the UI and the Services menu to start, stop, enable, disable, ... services.

OK, reading from the top again - your FTP client cannot even connect. So what does netstat -na | grep LISTEN say with the service enabled?
 

Chadi

Explorer
Joined
Aug 24, 2012
Messages
74
Figured out ftp issue. Had to enable "allow local user login" in the hidden advanced section.
 

Chadi

Explorer
Joined
Aug 24, 2012
Messages
74
Regarding restarting FTP, only option I see via UI is under services tab, toggling FTP option. Is there another option I'm not seeing in the UI?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Regarding restarting FTP, only option I see via UI is under services tab, toggling FTP option. Is there another option I'm not seeing in the UI?
That's exactly how one is supposed to do it. What's wrong with that?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If you prefer the shell:

midclt call service.restart ftp
 
Top