Running as another user

A Duston hald at sound.net
Mon Nov 25 15:21:33 CST 2002


Gene Dascher wrote:
> 
> Is there a way in *NIX to run an executable as another user, where any file
> access or creation will be done as that user?
--snip-- 
> I tried chmod u+s <script>, but that did not work the way I thought it
> should.

Normally you make the executabe owned by the user, and then chmod u+s it.

Scripts don't normally obey this since they are considered a bigger security
risk as they then proceed to run many other binary executables.

Hal




More information about the Kclug mailing list