chroot mount bind

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 […]

Tags: , , , ,

mountd: refused mount request: unmatched host

mountd: refused mount request: unmatched host Most likely the problem is on /etc/exports, add your IP or range after the directory you want to share. vim /etc/exports /opt/smr 172.17.0.0/16(rw,sync,no_root_squash) Check also /etc/hosts.allow /etc/hosts.deny Good material for troubleshooting: http://www.cs.bgu.ac.il/~arik/usail/network/nfs/tips.html http://osr507doc.sco.com/en/PERFORM/NFS_monitoring.html http://tldp.org/HOWTO/NFS-HOWTO/troubleshooting.html […]

Tags: , , , , ,