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 int main() { system("/root/bin/dial"); return 0; } Then I made that suid root. ___

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 modern

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 activi

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 Jonathan Chen
On Mon, Mar 10, 2003 at 11:37:53PM -0500, Paul Lathrop wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I must admit I feel silly having to ask, but I've been banging my head > against this for a couple days now and I am completely stumped. > > I just recently switched from Slackware