Re: running a program as root

2001-02-22 Thread Bret Hughes
Edward Dekkers wrote: > > Now I'm lost - he didn't mean sudo then? > > Sorry, I remember a hell of a lot of discussion about sudo when I first > started. > If you are talking about the start of this thread I don't think so. I belive he was asking about setting the suid bit on the permissions

Re: running a program as root

2001-02-22 Thread Mikkel L. Ellertson
On Thu, 22 Feb 2001, Shaun Donovan wrote: > I have tried this and tested it by writing a script that just runs a > "whoami", but when I run it, it does not run as the other user. I have > tried setting the setuid bit as well as the setgid, but to no avail. > What do you mean when you say that onl

Re: running a program as root

2001-02-22 Thread rpjday
On Wed, 21 Feb 2001, Michael Burger wrote: > I believe the program also needs to be "chmod o+s" to run > setuid...but I could be wrong. alas, you are. setuid: chmod u+s files ... setgid: chmod g+s files ... sticky bit: chmod +t directories ... rday -- Robert P. J. Day Eno River Tech

Re: running a program as root

2001-02-22 Thread Edward Dekkers
Now I'm lost - he didn't mean sudo then? Sorry, I remember a hell of a lot of discussion about sudo when I first started. -- Edward Dekkers (Director) Triple D Computer Services Pty. Ltd. 822 Rowley Road Oakford W.A. 6121 +61 8 9397-1040 ABN: 33 635 238 024 ___

Re: running a program as root

2001-02-22 Thread Michael Burger
; >Sent: Thursday, February 22, 2001 10:23 AM >Subject: Re: running a program as root > > >> you're talking about setuid root, which you must be VERY careful with. >> Only certain programs are tollerant of this. >> >> chown root file >> >> or &g

Re: running a program as root

2001-02-22 Thread Shaun Donovan
nt of this? - Original Message - From: Statux <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Sent: Thursday, February 22, 2001 4:23 AM Subject: Re: running a program as root > you're talking about setuid root, which you must be VERY careful with. > Only certa

Re: running a program as root

2001-02-22 Thread Robert Reyes
thanks man! From: "Statux" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Sent: Thursday, February 22, 2001 10:23 AM Subject: Re: running a program as root > you're talking about setuid root, which you must be VERY careful with. >

Re: running a program as root

2001-02-22 Thread Bret Hughes
"Mikkel L. Ellertson" wrote: > > On Thu, 22 Feb 2001, Robert Reyes wrote: > > > hey guys! > > i know i have done this but seem to forgot how to do it again. how can i > > change a property of a program so that when it is used by other users, it > > will run as root. for example smbmount, when us

running a program as root

2001-02-22 Thread Robert Reyes
hey guys! i know i have done this but seem to forgot how to do it again. how can i change a property of a program so that when it is used by other users, it will run as root. for example smbmount, when users other than root runs it, it says not permitted, how do i remove this permission thing? tha

Re: running a program as root

2001-02-22 Thread Mikkel L. Ellertson
On Thu, 22 Feb 2001, Robert Reyes wrote: > hey guys! > i know i have done this but seem to forgot how to do it again. how can i > change a property of a program so that when it is used by other users, it > will run as root. for example smbmount, when users other than root runs it, > it says not p

Re: running a program as root

2001-02-22 Thread Statux
you're talking about setuid root, which you must be VERY careful with. Only certain programs are tollerant of this. chown root file or chown root:root file <--to set the group too, etc, you should know this part then: chmod 4755 file or something to that effect. remember how to calculate pe