how to get perl to do root things

Russell russell at futureless.org
Wed Mar 28 15:14:31 CST 2001


On Wed, Mar 28, 2001 at 08:31:29PM -0000, Scott McWhirter wrote:
> anyone have a good link for how to get perl to run certain things like root 
> even when a normal user is running the script? (ndc and cp inpeticular).

I have no experience of it, but I'd expect you'd want to run it set uid as
whoever has permission to correctly run ndc and to copy the files you
require.
chmod u+s <file> should do this, if it is owned by the correct user.
man chmod for more information, or do a web search for set uid / suid
information.

HTH,
Russell

-- 
Computers are useless.  They can only give you answers.
                -- Pablo Picasso

(PGP encrypted email preferred: ID=0x3CA84CF4) 
http://wwwkeys.eu.pgp.net:11371/pks/lookup?op=get&search=0x3CA84CF4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://mail.pm.org/archives/belfast-pm/attachments/20010328/aec13361/attachment.bin


More information about the Belfast-pm mailing list