in reply to Process owner

Okay, nevermind. Sorry
$ 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"

Replies are listed 'Best First'.
Re: Re: Process owner
by blakem (Monsignor) on Dec 15, 2001 at 04:51 UTC
    Thats odd... I get:
    % /usr/bin/sperl5.6.0 -e 'print "UID: $< EUID $>\n"'; No -e allowed in setuid scripts.

    -Blake

      Doh guess I shouldn't modify my examples on the fly/untested. It was actually in a script but it looked like it would be nicer to put in the node as a one-liner :-/

      --
      perl -p -e "s/(?:\w);([st])/'\$1/mg"