mkdir -v -p /sftp/root/${USER}/home chown root.root /sftp/root/${USER} mount –bind //${DIR} /sftp/root/${USER}/home useradd -g tomcat -s /sbin/nologin ${USER} sshd_config Match Group tomcat AllowTcpForwarding no ForceCommand internal-sftp -u 0002 -d home ChrootDirectory /sftp/root/%u All folder must have permission as 777, so I […]
How to Setup a DNS server with BIND9
. . How to Setup a DNS server with BIND9. # apt-get install bind9 Configure a master domain: # vim /etc/bind/named.conf zone “provaes.com” { type master; file “/etc/bind/db.provaes.com”; }; Create the master zone file: # vim /etc/bind/db.provaes.com ; register SOA […]