Listed below is how i fixed this issue:
- Add user names to /etc/ftpchroot. This makes the user accounts unable to navigate outside of their Home directory. # nano /etc/ftpchroot add [username]
- Add the nologin "shell" to your shell list so that ftpd sees it as a a valid shell. # nano /etc/shells
add "/sbin/nologin"
Should look something like this:
# $FreeBSD: src/etc/shells,v 1.5 2000/04/27 21:58:46 ache Exp $
#
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/sbin/nologin
- Finally we need to edit the user account to use the nologin shell using the following command:
# pw usermod -n [username] -s /sbin/nologin
Hope you find this helpful
No comments:
Post a Comment