Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:49:28 +01:00
Log /etc/rc.local std{out,err}
#!/bin/sh

SCRIPT='/etc/rc.local'
FOLDER_NAME=etc_rc_local
su --login benjamin_loison -c "
    mkdir $FOLDER_NAME/
    cd $FOLDER_NAME/
    (
        echo \"Start of $SCRIPT at…
Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:37:58 +01:00
Log /etc/rc.local std{out,err}
cd /root/

works as wanted.

Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:34:30 +01:00
Log /etc/rc.local std{out,err}
ls /etc/
Output:
adduser.conf		cups		     group	      libpaper.d      NetworkManager  rc5.d		 sudoers.d
adjtime			cupshelpers	     group-	    …
Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:33:41 +01:00
Log /etc/rc.local std{out,err}
mktemp --suffix _etc_rc_local_stdout
/tmp/tmp.hdUio8goPt_etc_rc_local_stdout

However, permanent with date logs would be nice.

Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:29:06 +01:00
Log /etc/rc.local std{out,err}
sudo find / -name 'my_stdout.txt' 2> /dev/null
/my_stdout.txt
Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:27:42 +01:00
Log /etc/rc.local std{out,err}
sudo chmod +x /etc/rc.local
ls -l /etc/rc.local
-rwxr-xr-x 1 root root 134 Feb 18 14:22 /etc/rc.local
Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:26:43 +01:00
Log /etc/rc.local std{out,err}

I have:

ls -l /etc/rc.local
-rw-r--r-- 1 root root 134 Feb 18 14:22 /etc/rc.local
Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:25:49 +01:00
Log /etc/rc.local std{out,err}

Well it is not, so maybe the permissions are to blame.

Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:23:59 +01:00
Log /etc/rc.local std{out,err}

Let us add:

while [ true ]
do
    sleep 1
done

to see if it stays stuck.

Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:21:24 +01:00
Log /etc/rc.local std{out,err}
sudo find / -name 'my_stdout.txt' 2> /dev/null

does not return anything on reboot.

Benjamin_Loison commented on issue Benjamin_Loison/linux#66 2025-02-18 14:18:39 +01:00
Log /etc/rc.local std{out,err}
/etc/rc.local:
#!/bin/sh

(echo my_stdout_content && echo my_stderr_content >&2)
Benjamin_Loison opened issue Benjamin_Loison/linux#66 2025-02-18 14:16:42 +01:00
Log /etc/rc.local std{out,err}
Benjamin_Loison commented on issue Benjamin_Loison/nginx#5 2025-02-18 12:10:01 +01:00
Do not share cookies between HOSTNAME/git/ and HOSTNAME/doc/

I suspect some fields of Web Developer Tools > Storage > Cookies to help like Path and SameSite.

Benjamin_Loison opened issue Benjamin_Loison/nginx#5 2025-02-18 12:06:37 +01:00
Do not share cookies between HOSTNAME/git/ and HOSTNAME/doc/
Benjamin_Loison commented on issue Benjamin_Loison/nginx#3 2025-02-16 09:36:59 +01:00
Markdown syntax highlighting

Gitea shows as Nginx Configuration File.

Related to Benjamin_Loison/httpd/issues/4.

Benjamin_Loison commented on issue Benjamin_Loison/linux#35 2025-02-15 19:08:53 +01:00
Limit rights of programs

Note that I am fine having to specify which file(s) or/and folder(s) I give access to a program, possibly even if need a reboot.

Benjamin_Loison commented on issue Benjamin_Loison/codeberg#8 2025-02-13 19:59:41 +01:00
Network-level DDoS

I seem to not always face this issue anymore since about an hour.

Benjamin_Loison commented on issue Benjamin_Loison/codeberg#8 2025-02-13 19:54:48 +01:00
Network-level DDoS