This commit is contained in:
Artur Gurgul 2025-05-10 07:01:37 +02:00
parent a124790b49
commit 12a11a38f3

View file

@ -1,5 +1,5 @@
on Archlinux
```bash ```bash
useradd -mg users -s /usr/bin/zsh test useradd -mg users -s /usr/bin/zsh test
passwd test passwd test
@ -12,6 +12,9 @@ chmod 755 /home/test/website
curl -u youruser:yourpass -T test.txt http://localhost:8800/test.txt curl -u youruser:yourpass -T test.txt http://localhost:8800/test.txt
on Debian if login as su from another user
/usr/sbin/useradd -mg users -s /usr/bin/zsh public
``` ```
GOTOOLCHAIN=auto go mod vendor GOTOOLCHAIN=auto go mod vendor
GOTOOLCHAIN=auto go run . GOTOOLCHAIN=auto go run .
@ -19,3 +22,10 @@ GOTOOLCHAIN=auto go run .
apt install libpam0g-dev apt install libpam0g-dev
sudo -u www-data ls /home/$user/website
## Set up the user
chown -R :www-data /home/$user/website
chmod 711 /home/$user