Resin 4 session timeout

vi /etc/resin/app-default.xml <web-app-default> <!-- configures the default class loader --> <class-loader> <compiling-loader path="WEB-INF/classes"/> <library-loader path="WEB-INF/lib"/> </class-loader> <session-config cookie-domain="mydomain.com"> <session-timeout>30</session-timeout> <session-max>4096</session-max> </session-config> OR vi /etc/resin/cluster-default.xml <resin xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin"> <cluster-default> <host-default> .... <session-config> <use-persistent-store>${session_store}</use-persistent-store> <session-timeout>480</session-timeout> <session-max>4096</session-max> <enable-url-rewriting>false</enable-url-rewriting> </session-config> </web-app-default> </host-default> </cluster-default> </resin>

Read More

sftp parent directory lock chroot

[root@localhost owl]# vi /etc/ssh/sshd_config Subsystem sftp internal-sftp Match Group owl     ChrootDirectory /home/owl/     #ChrootDirectory /home/owl/%u     #ChrootDirectory %h     ForceCommand internal-sftp [root@localhost owl]# chown root.root /home/owl [root@localhost owl]# chmod 755 /home/owl [root@localhost owl]# /etc/rc.d/init.d/sshd restart ChrootDirectory 에서 지정하는 폴더는 root 계정만 쓸 수 있다. 따라서, ChrootDirectory %h 와 같이 설정한다면, 사용자의 홈폴더는 읽기 […]

Read More