Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>
Subject: Re: setuid on dec unix v4
Date: 2000/11/10	[thread overview]
Message-ID: <3A0C0784.4DEAA5A7@ev.co.yu> (raw)
In-Reply-To: plti0t806v85j68parrup9gri95hekh3qg@4ax.com

zed wrote:
> 
> Hi all,
> 
> bit of a problem
> 
> setting setuid on a program or script and running the program,  will
> not change the users effective ID.

Of course not. It will only ALLOW the program in question to change it's
EUID to the SUID via system call seteuid(). Of course, a shell script
cannot call that function.

Now, I have heard that CSh, if SetUID to root itself, will change UIDs
of scripts, if they have SetUID on them. Not sure about this, though.

Nix.



  parent reply	other threads:[~2000-11-10  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-08  5:00 setuid on dec unix v4 zed
2000-11-08  5:00 ` Bob Koehler
2000-11-10  5:00 ` Nikola Milutinovic [this message]
2000-11-10  5:00 ` Andrew Duane USG
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