Skip to main content
Bumped by Community user
Bumped by Community user
Added code formatting.
Source Link
user26112
user26112

This is what I did:

  1. CentOS 6.2 server
  2. installed nginx
  3. installed vsftpd
  4. in vsftpd.conf I set chroot_local_user=YESchroot_local_user=YES
  5. created a new user "bleh"
  6. created directory /home/bleh/public_html//home/bleh/public_html/
  7. in virtual.conf I set location / { root to /home/bleh/public_html//home/bleh/public_html/
  8. and finally did chmod 755 /home/bleh/chmod 755 /home/bleh/

Is this safe? Is this acceptable?

I ran into all sorts of permission problems when I tried to use /var/www//var/www/ as root root. The above worked and the server is delivery data.

This is what I did:

  1. CentOS 6.2 server
  2. installed nginx
  3. installed vsftpd
  4. in vsftpd.conf I set chroot_local_user=YES
  5. created a new user "bleh"
  6. created directory /home/bleh/public_html/
  7. in virtual.conf I set location / { root to /home/bleh/public_html/
  8. and finally did chmod 755 /home/bleh/

Is this safe? Is this acceptable?

I ran into all sorts of permission problems when I tried to use /var/www/ as root. The above worked and the server is delivery data.

This is what I did:

  1. CentOS 6.2 server
  2. installed nginx
  3. installed vsftpd
  4. in vsftpd.conf I set chroot_local_user=YES
  5. created a new user "bleh"
  6. created directory /home/bleh/public_html/
  7. in virtual.conf I set location / { root to /home/bleh/public_html/
  8. and finally did chmod 755 /home/bleh/

Is this safe? Is this acceptable?

I ran into all sorts of permission problems when I tried to use /var/www/ as root. The above worked and the server is delivery data.

Source Link

Is setting CentOS user home-dir as NGINX server block root secure for vsftpd?

This is what I did:

  1. CentOS 6.2 server
  2. installed nginx
  3. installed vsftpd
  4. in vsftpd.conf I set chroot_local_user=YES
  5. created a new user "bleh"
  6. created directory /home/bleh/public_html/
  7. in virtual.conf I set location / { root to /home/bleh/public_html/
  8. and finally did chmod 755 /home/bleh/

Is this safe? Is this acceptable?

I ran into all sorts of permission problems when I tried to use /var/www/ as root. The above worked and the server is delivery data.