From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5697eeee83e079696212a62a1122c1f9@9netics.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] Novice question - run as other From: 9nut@9netics.com In-Reply-To: <200403161953.i2GJrNMv080779@adat.davidashen.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Tue, 16 Mar 2004 14:54:54 -0800 Topicbox-Message-UUID: 319876ee-eacd-11e9-9e20-41e7f4b1d025 > I'm missing something basic and cannot figure out. How can I run > 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: % cpu -a netkey user[dvd]: glenda challenge: 2304 response: etc. You could also drawterm as a different user.