Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Casper.Dik@Holland.Sun.COM (Casper H.S. Dik - Network Security Engineer)
Subject: Re: Cannot Set Owner & User-ID bit to Root via script
Date: 1996/08/16	[thread overview]
Message-ID: <4v21ng$fag@flonk.uk.sun.com> (raw)
In-Reply-To: 321333D2.41C6@sms.lmco.com


"John G. Bury" <jbury@sms.lmco.com> writes:

>I'm sure this is an age old problem with a simple solution, but I can't
>figure it out...I have a need to provide several users with a way to
>change the ownership of their executables to root:system and to set the
>user-id bit on the executables.

>I'm having problems with a Korn shell script I originally wrote on a
>Sun Solaris box and ported to Digital UNIX v3.2.  Yes, the script does
>work on Sun Solaris with path changes to the execuables chmod and chown,
>but the script will not work on Digital UNIX.  The script itself is
>owned by root:system with the user-id bit set, and does the following:


It is possible that Digital Unix doesn't like set-uid scripts and
disabes them by default.

It's a good thing, as set-yuid scripts are hard to get right.


Your script, e.g., can easily be exploited by chagning $PATH.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Unsolicited e-mail advertisements send to my address will be proofread
for a $250 flat fee.



  parent reply	other threads:[~1996-08-16  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-15  4:00 Cannot Set Owner & User-ID bit to Root via script John G. Bury
1996-08-15  4:00 ` Phil Farrell
1996-08-16  4:00   ` Brian S Hiles
1996-08-16  4:00     ` Christopher M. Conway
1996-08-16  4:00 ` Dave Plonka
1996-08-16  4:00 ` Casper H.S. Dik - Network Security Engineer [this message]
1996-09-05  4:00 ` J. Anderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox