From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1065ea,95aa0b062fa9eaff X-Google-Attributes: gid1065ea,public X-Google-Thread: 1012a6,95aa0b062fa9eaff X-Google-Attributes: gid1012a6,public X-Google-Thread: fee84,95aa0b062fa9eaff X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: setuid script on DUX 4.0D: why doesnt work? Date: 1999/02/08 Message-ID: <36BEB515.2859B7D2@EUnet.yu>#1/1 X-Deja-AN: 441901481 Content-Transfer-Encoding: 7bit References: <36BB71DC.2D7149B8@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 918467601 11588 194.247.199.47 (8 Feb 1999 09:53:21 GMT) Organization: Me organized? Not here. Mime-Version: 1.0 NNTP-Posting-Date: 8 Feb 1999 09:53:21 GMT Newsgroups: comp.unix.osf.osf1,comp.unix.shell,alt.unix.wizards Ori Tzoran wrote: > > hello, > > the following 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 Put "who am i" in the script, but I think it'll tell you what you already know. > > tried man on sh(1b), sh(1p), setuid(2) etc: nothing metions DUX behaves differently than other unix variants. > what's the problem? What is the behavior on other UNIX flavours? Nix.