add doc
This commit is contained in:
parent
a124790b49
commit
12a11a38f3
1 changed files with 11 additions and 1 deletions
12
readme.md
12
readme.md
|
@ -1,5 +1,5 @@
|
|||
|
||||
|
||||
on Archlinux
|
||||
```bash
|
||||
useradd -mg users -s /usr/bin/zsh test
|
||||
passwd test
|
||||
|
@ -12,6 +12,9 @@ chmod 755 /home/test/website
|
|||
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 run .
|
||||
|
@ -19,3 +22,10 @@ GOTOOLCHAIN=auto go run .
|
|||
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue