From 12a11a38f3b4adf88fe66eaac69ca04b4ec01f0d Mon Sep 17 00:00:00 2001 From: Artur Gurgul Date: Sat, 10 May 2025 07:01:37 +0200 Subject: [PATCH] add doc --- readme.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index d3650dd..51d098c 100644 --- a/readme.md +++ b/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 \ No newline at end of file