Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 319
  • Last Modified:

No -e allowed in setuid scripts.

I have a compiled perl script (perlcc -o obj src) and would like a none root user to run the script, and have it run as root.

The perl interpreter obviously doesn't like this, how do I get aound this interpreter grumble.

Thanks
0
chalkie
Asked:
chalkie
1 Solution
 
wilcoxonCommented:
You can't without alot of work.  You might be able to if you recompile perl after modifying the sources that deal with suid, tainting, and/or -e.  I believe that is a basic functionality designed into perl that suid won't allow -e.  I know very little about perlcc.
0
 
jmcgOwnerCommented:
Nothing has happened on this question in over 7 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
accept answer by wilcoxon.

Please post any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now