From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,3cfb20fa0d9415a8 X-Google-Attributes: gid10952f,public X-Google-Thread: fee84,3cfb20fa0d9415a8 X-Google-Attributes: gidfee84,public X-Google-Thread: 1012a6,3cfb20fa0d9415a8 X-Google-Attributes: gid1012a6,public X-Google-Thread: 1020c6,3cfb20fa0d9415a8 X-Google-Attributes: gid1020c6,public X-Google-Thread: 1065ea,3cfb20fa0d9415a8 X-Google-Attributes: gid1065ea,public From: Barry Margolin Subject: Re: setuid scripts on DUX 4.0D: (2)why doesnt work? Date: 1999/02/08 Message-ID: #1/1 X-Deja-AN: 441977770 Distribution: world References: <36BB76D4.CFE04F8A@netvision.net.il> X-Trace: burlma1-snr1.gtei.net 918493295 4.2.32.97 (Mon, 08 Feb 1999 17:01:35 GMT) Organization: GTE Internetworking, Cambridge, MA X-Copies-To: never NNTP-Posting-Date: Mon, 08 Feb 1999 17:01:35 GMT Newsgroups: comp.unix.osf.osf1,comp.unix.admin,comp.unix.shell,comp.security.unix,alt.unix.wizards Originator: barmar@bbnplanet.com (Barry Margolin) In article <36BB76D4.CFE04F8A@netvision.net.il>, Ori Tzoran wrote: >hello, > >the following example doesn't work: > >#!/sbin/sh ># test suid >id -u >ps -f -p $$ >exit 0 > >ls -l test.suid >-r-sr-x--x ... root system test.suid > >attempt to run as user "ori" (uid = 123) gives: >123 >USER PID PPID ... COMMAND >ori 1234 988 .... sh test.suid > >tried man on sh(1b), sh(1p), setuid(2) etc: nothing metions DUX behaves >differently than other unix variants. >what's the problem? Many Unix variants prohibit setuid scripts. There are known security holes with them. If this is documented anywhere, I would expect it to be in the execve(2) man page. -- Barry Margolin, barmar@bbnplanet.com GTE Internetworking, Powered by BBN, Burlington, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Don't bother cc'ing followups to me.