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 only certain programs are tolerant 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 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 permissions:
>
>  4   2   1    - [ setuid, setgid, and I forget ]
> 421 421 421   - [ owner,  group,  others ]
>
> so rwxr-xr-x without special stuff is 0755 or just 755, and rwxr-x---
with
> setuid and setgid settings would be 6750.
>
> most of the time to setuid something, you just chmod it to 4755. to
setuid
> root you do that and make sure that the file is owned by root.
>
> etc etc
>
>
> 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 permitted, how do i remove this permission thing?
> > thanks for any help =)
> >
> > ==============================
> > Robert Reyes
> > Junior Software Developer
> > Colibria Phils, Inc
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > +639178322217
> >
> >
> >
> > _______________________________________________
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/redhat-list
> >
>
> --
> -Statux
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to