From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] Novice question - run as other From: 9nut@9netics.com In-Reply-To: <200403170718.i2H7ICJm083368@adat.davidashen.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 17 Mar 2004 01:33:38 -0800 Topicbox-Message-UUID: 32227bc8-eacd-11e9-9e20-41e7f4b1d025 >> > a program from a shell script and change the user it runs as. >> >> The security model doesn't allow this. Perhaps by running it as a service >> on a cpu. Check /sys/src/cmd/auth/cron.c and cap(3). For somethings >> you can cpu over and change to a different uid: > > The following works: ... > fd>=0 && (write(fd,"none",strlen("none"))!=-1) That's not what you asked.