Debian tips to chroot a user in it's home and add rights for www-data
STEP 1
sudo apt-get -y install bindfs
STEP 2
sudo mkdir -p /home/MYUSER/www
sudo chown -Rf MYUSER:MYUSER /home/MYUSER/www
#!/bin/bash | |
set -e | |
# | |
# As of 11/24/2019, Debian still can't get it together with ecryptfs-utils so there | |
# is no longer an ecryptfs-utils in the apt repositories, removing the ability for | |
# a user to use ecryptfs at all, unless they build from source and manually configure | |
# the system | |
# | |
# Before using this, please see the status of the bugreport: | |
# |
Debian tips to chroot a user in it's home and add rights for www-data
sudo apt-get -y install bindfs
sudo mkdir -p /home/MYUSER/www
sudo chown -Rf MYUSER:MYUSER /home/MYUSER/www