$ ls -l setuidscript -rws------ 1 root root 49 Dec 14 22:26 /tmp/setuidscr +ipt $ cat setuidscript #!/usr/bin/sperl5.6.0 print "UID: $< EUID $>\n"; $ ./setuidscript UID: 8029 EUID 0
UPDATED: Changed back to the original syntax, that works ( a file, instead of a one-liner).
--
perl -p -e "s/(?:\w);([st])/'\$1/mg"
In reply to Re: Process owner
by belg4mit
in thread Process owner
by belg4mit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |