- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
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…
Log
/etc/rc.local
std{out,err}
ls /etc/
Output:
adduser.conf cups group libpaper.d NetworkManager rc5.d sudoers.d
adjtime cupshelpers group- …
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.
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
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
Log
/etc/rc.local
std{out,err}
sudo find / -name 'my_stdout.txt' 2> /dev/null
does not return anything on reboot.
Log
/etc/rc.local
std{out,err}
/etc/rc.local
:
#!/bin/sh
(echo my_stdout_content && echo my_stderr_content >&2)
Log
/etc/rc.local
std{out,err}
Do not share cookies between
HOSTNAME/git/
and HOSTNAME/doc/
Related to Benjamin_Loison/BookStack/issues/6.
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.
Do not share cookies between
HOSTNAME/git/
and HOSTNAME/doc/
Markdown syntax highlighting
Gitea shows as Nginx Configuration File.
Related to Benjamin_Loison/httpd/issues/4.
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.