How to use write set uid or set gid?
Very simple example:
chmod +x 2.sh
chmod ug+s 2.sh
-rwsr-sr-x 1 root root 20 Jul 22 14:08 2.sh
as you see, the ownership is root:
(but I can run the script via user martin) --- because of chmod ug +s
martin@kirkovalod:~$ ./2.sh
Sat Jul 22 02:09:36 PM CEST 2023
martin@kirkovalod:~$
Žiadne komentáre:
Zverejnenie komentára