

I usually need to create Linux users for FTP access…
FTP is unsecure, we should use sftp bla bla blaa…
useradd username
passwd username
usermod -m -d /new/path/ username
This way we will set the new path (/new/path/) to the user named username.
-m defines that content from the old home directory will be mobed to the new one.
-d the new home dir’s path
finger username
500 OOPS: priv_sock_get_cmd
macbook:~ PJunior$ ftp [email protected] Connected to example.com. 500 OOPS: priv_sock_get_cmd ftp: Can't connect or login to host `example.com'
Open /etc/vsftpd.conf and at the end add
seccomp_sandbox=NO
and restart the Server:
sudo service vsftpd restart

macbook:~ PJunior$ ftp [email protected] Connected to example.com. 500 OOPS: vsftpd: refusing to run with writable root inside chroot() ftp: Can't connect or login to host `example.com'
Open /etc/vsftpd.conf and at the end add
allow_writeable_chroot=YES
and restart the Server:
sudo service vsftpd restart