Answer the question
In order to leave comments, you need to log in
How to restrict a user in his home folder?
For the N-th number of years, a familiar scheme on the web server was formed, which left open security issues, and now, when you have to let third-party users in, they have become critical.
NGINX + PHP5-FPM bundle, users are based in /var/www/USER/SITE .
The owner of /var/www/USER is root . Total inside - USER . All users hang on different PHP-FPM pools. Access exclusively via SFTP, users are locked in their own folder via setting in sshd_config:
Subsystem sftp internal-sftp
Match group www-data
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
[USER]
user = USER
group = www-data
listen = 127.0.0.1:PORT
chdir = /var/www/USER/
Answer the question
In order to leave comments, you need to log in
Because you don't have the $(this) variable inside the test function.
Your solution will be:
function test(item){
alert(item.attr('class'));
}
; Chroot to this directory at the start. This value must be defined as an
; absolute path. When this value is not set, chroot is not used.
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
; of its subdirectories. If the pool prefix is not set, the global prefix
; will be used instead.
; Note: chrooting is a great security feature and should be used whenever
; possible. However, all PHP paths will be relative to the chroot
; (error_log, sessions.save_path, ...).
; Default Value: not set
;chroot =
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question