From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3cfb20fa0d9415a8 X-Google-Attributes: gidfee84,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: 10952f,3cfb20fa0d9415a8 X-Google-Attributes: gid10952f,public From: Ury Segal Subject: Re: setuid scripts on DUX 4.0D: (2)why doesnt work? Date: 1999/02/11 Message-ID: <36C2F08B.CBB19417@ibm.net>#1/1 X-Deja-AN: 443228947 Content-Transfer-Encoding: 7bit References: <36BB76D4.CFE04F8A@netvision.net.il> <36BEB582.B2348578@EUnet.yu> Content-Type: text/plain; charset=us-ascii X-Complaints-To: postmaster@ibm.net X-Trace: news.ibm.net.il!ibm.net 918745258 27662 (none) 192.115.216.45 Organization: Unspecified Organization Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1,comp.unix.admin,comp.unix.shell,comp.security.unix,alt.unix.wizards Nikola Milutinovic wrote: > 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 > > > > what's the problem? You should add "-b" after the first line, ie.e #!/sbin/sh -b -- Ury Segal e-mail: ury@ibm.net Phone: 972-52-651629 , ICQ: 15153160