These are the lines modified from sshd_config file
Code: Select all
Subsystem sftp internal-sftp
Match User ftpuser
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
This is the startup script placed into /etc/init.d (with symlink to sc.d)
Code: Select all
#!/bin/bash
chown root:root /home/ftpuser
chmod 755 /home/ftpuser
