Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!nsw1.news.telstra.net!news.telstra.net!news-out.internetmci.com!newsfeed.internetmci.com!news.msfc.nasa.gov!news.maxwell.syr.edu!ais.net!ameritech.net!uunet!in2.uu.net!195.31.190.112!news.tin.it!server-b.cs.interbusiness.it!usenet From: Markus Senoner <markus@giotto.dnet.it> Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.misc Subject: script run as nobody with root permissions? Date: Thu, 03 Apr 1997 19:48:48 +0200 Organization: Dator S.r.l. Lines: 24 Message-ID: <3343ED80.71D3C60B@giotto.dnet.it> NNTP-Posting-Host: giotto.dnet.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (X11; I; Linux 1.99.4 i586) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38478 comp.unix.misc:28626 I want to write a script (say: foobar) like: #!/bin/sh mkdir /xxx and run it as nobody, it obviously gives an error message: > ./foobar mkdir: /xxx: Permission denied when I try to set following permissions: -rwsr-sr-x 1 root wheel foobar and try to execute the script again, it still gives: > ./foobar mkdir: /xxx: Permission denied I tried to put nobody in the wheel group, but still no success. What do I wrong? Thanks a lot in advance! Markus Senoner