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: 1065ea,3cfb20fa0d9415a8 X-Google-Attributes: gid1065ea,public X-Google-Thread: 1012a6,3cfb20fa0d9415a8 X-Google-Attributes: gid1012a6,public X-Google-Thread: 1020c6,3cfb20fa0d9415a8 X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,3cfb20fa0d9415a8 X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: setuid scripts on DUX 4.0D: (2)why doesnt work? Date: 1999/02/08 Message-ID: <36BEB582.B2348578@EUnet.yu>#1/1 X-Deja-AN: 441901482 Content-Transfer-Encoding: 7bit References: <36BB76D4.CFE04F8A@netvision.net.il> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@EUnet.yu X-Trace: SOLAIR2.EUnet.yu 918467710 11588 194.247.199.47 (8 Feb 1999 09:55:10 GMT) Organization: Me organized? Not here. Mime-Version: 1.0 NNTP-Posting-Date: 8 Feb 1999 09:55:10 GMT Newsgroups: comp.unix.osf.osf1,comp.unix.admin,comp.unix.shell,comp.security.unix,alt.unix.wizards 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? Oh, and I forgot to ask, are sh, ksh, ... on other UNIXes SetUID to root? Because, otherwise, I don't see how you can get SUID root script to run as desired. Nix.