Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!koriel!rutgers!twwells!bill From: bill@twwells.com (T. William Wells) Newsgroups: comp.os.386bsd.questions Subject: Re: "su" for one command Message-ID: <CHH55F.8KI@twwells.com> Date: 3 Dec 93 19:36:36 GMT References: <2dkb8a$hoq@sylvester.cc.utexas.edu> <JKH.93Dec3011102@whisker.lotus.ie> Organization: None, Mt. Laurel, NJ Lines: 16 In article <JKH.93Dec3011102@whisker.lotus.ie>, Jordan K. Hubbard <jkh@whisker.lotus.ie> wrote: : In article <2dkb8a$hoq@sylvester.cc.utexas.edu> vax@sylvester.cc.utexas.edu (Vax) writes: : 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? : : Try something like this: Speaking as an irked user who was bitten by the very same gotcha: Improvements I can understand, but just dropping a feature? Why? Please don't cite POSIX. That may be a reason but it is certainly no excuse! Any reason to not retrofit the old behavior on the new su? If it's not happening somewhere else, I'll probably do it myself.