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

Reply via email to