Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!hp9000.csc.cuhk.hk!saimiri.primate.wisc.edu!sdd.hp.com!spool.mu.edu!uwm.edu!cs.utexas.edu!geraldo.cc.utexas.edu!sylvester.cc.utexas.edu!not-for-mail From: vax@sylvester.cc.utexas.edu (Vax) Newsgroups: comp.os.386bsd.questions Subject: "su" for one command Date: 2 Dec 1993 03:07:22 -0600 Organization: The University of Texas - Austin Lines: 9 Message-ID: <2dkb8a$hoq@sylvester.cc.utexas.edu> NNTP-Posting-Host: sylvester.cc.utexas.edu Under BSD Unixes, how does one go about executing a single command as another user? I have been unsuccessful in applying the standard: "su foo command". It simply ignores the command. Is there a proper way to do this? Do you use a "here" document? Can you nest them? Thanks, please reply via email -- Protect our endangered bandwidth - reply by email. NO BIG SIGS! VaX#n8 vax@ccwf.cc.utexas.edu - Don't blame me if the finger daemon is down