* setuid on dec unix v4
@ 2000-11-08 5:00 zed
2000-11-08 5:00 ` Bob Koehler
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: zed @ 2000-11-08 5:00 UTC (permalink / raw)
Hi all,
bit of a problem
setting setuid on a program or script and running the program, will
not change the users effective ID.
any ideas?
nice one
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: setuid on dec unix v4
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
2000-11-10 5:00 ` Andrew Duane USG
2 siblings, 0 replies; 4+ messages in thread
From: Bob Koehler @ 2000-11-08 5:00 UTC (permalink / raw)
In article <plti0t806v85j68parrup9gri95hekh3qg@4ax.com>, zed <zoa@clara.co.uk> writes:
> Hi all,
>
> bit of a problem
>
> setting setuid on a program or script and running the program, will
> not change the users effective ID.
>
> any ideas?
Try also calling seteuid() in the program. What are you doing to check
the effective uid?
----------------------------------------------------------------------
Bob Koehler | Computer Sciences Corporation
NASA GSFC Flight Software | Federal Sector, Civil Group
| please remove ".aspm" when replying
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: setuid on dec unix v4
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
2000-11-10 5:00 ` Andrew Duane USG
2 siblings, 0 replies; 4+ messages in thread
From: Nikola Milutinovic @ 2000-11-10 5:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: setuid on dec unix v4
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
@ 2000-11-10 5:00 ` Andrew Duane USG
2 siblings, 0 replies; 4+ messages in thread
From: Andrew Duane USG @ 2000-11-10 5:00 UTC (permalink / raw)
In article <plti0t806v85j68parrup9gri95hekh3qg@4ax.com> zoa@clara.co.uk writes:
>setting setuid on a program or script and running the program, will
>not change the users effective ID.
I am not sure what you mean.
You have a program, owned by some other user, that is setuid?
And when you run it, you don't have the permissions of that user?
How are you checking this?
--
Andrew L. Duane (JOT-7) duane@zk3.dec.com
Compaq Computer Corporation (603)-884-1294
110 Spit Brook Road
M/S ZKO3-3/U14
Nashua, NH 03062-2698
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-11-10 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2000-11-10 5:00 ` Andrew Duane USG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox