in reply to Faster way to do su

Erm, why not just write a script which does what you want (perl or sh) and then use sudo to let it run as root (or whomever) without prompting for a password rather than mucking with su in the first place?

Replies are listed 'Best First'.
Re: Re: Faster way to do su
by jcpunk (Friar) on Apr 16, 2004 at 21:49 UTC
    This program, when completed (the Net::Telnet version is) will run as part of a webserver. Putting user nobody (or apache depending) into the sudoers file is usually considered bad form.

    jcpunk
    all code is tested, and doesn't work so there :p (varient on common PM sig for my own ammusment)