From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1065ea,95aa0b062fa9eaff,start X-Google-Attributes: gid1065ea,public X-Google-Thread: 1012a6,95aa0b062fa9eaff,start X-Google-Attributes: gid1012a6,public X-Google-Thread: fee84,95aa0b062fa9eaff,start X-Google-Attributes: gidfee84,public From: Ori Tzoran Subject: setuid script on DUX 4.0D: why doesnt work? Date: 1999/02/06 Message-ID: <36BB71DC.2D7149B8@netvision.net.il>#1/1 X-Deja-AN: 441886420 Content-Transfer-Encoding: 7bit X-Accept-Language: en,fr-FR X-Priority: 2 (High) Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@netvision.net.il X-Trace: news.netvision.net.il 918254042 24333 62.0.184.40 (5 Feb 1999 22:34:02 GMT) Organization: NetVision Israel Mime-Version: 1.0 NNTP-Posting-Date: 5 Feb 1999 22:34:02 GMT Newsgroups: comp.unix.osf.osf1,comp.unix.shell,alt.unix.wizards 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 tried man on sh(1b), sh(1p), setuid(2) etc: nothing metions DUX behaves differently than other unix variants. what's the problem?