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 […]
Mount S3 on linux
Mount S3 on linux Amazon S3 Important considerations when using s3fs, namely related to the inherent limitations of S3: – no file can be over 5GB – you can’t partially update a file so changing a single byte will re-upload […]
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 […]
yum cdrom repo
How to use the cdrom RedHat .iso I tested using Vmware ESX and RedHat 5.7 1 . Mount or insert the RedHat CD 2. Mount the cdrom mount /dev/cdrom /mnt/cdrom 3. Write the repo file vim /etc/yum.repos.d/rhel-cdrom.repo [rhel-cdrom] name=rhel-cdrom baseurl=file:/mnt/cdrom/Server […]