Re: suid shell script

2003-03-11 Thread Peter Elsner
One creates the script, places it in /usr/local/bin (for example), and runs it via a root CRONTAB entry. At 12:42 AM 3/11/2003 -0500, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday, March 11, 2003, at 12:28 AM, Jonathan Chen wrote: Dunno about Linux, but every other

Re: suid shell script

2003-03-11 Thread Lee Harr
There are a couple of scripts I use for my own convenience that I ran setuid root I have one of those: my dialer script. What I did is create a short C wrapper: #include stdlib.h int main() { system(/root/bin/dial); return 0; } Then I made that suid root.

Re: suid shell script

2003-03-10 Thread Paul Lathrop
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday, March 11, 2003, at 12:28 AM, Jonathan Chen wrote: Dunno about Linux, but every other modern UNIX out there doesn't allow setuid scripts. Thanks for your response. Now my question is - how does one automate tasks requiring root privileges?

Re: suid shell script

2003-03-10 Thread Ryan Thompson
Paul Lathrop wrote to Jonathan Chen: Thanks for your response. Now my question is - how does one automate tasks requiring root privileges? From /usr/ports/security/sudo/pkg-descr: Sudo is a program designed to allow a sysadmin to give limited root privileges to users and log root