Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!neptune!orr From: orr@neptune.UUCP (Rick Orr) Newsgroups: comp.unix.wizards Subject: using "su" without keying in the password Keywords: password su Message-ID: <1990Mar14.202740.5044@neptune.UUCP> Date: 14 Mar 90 20:27:40 GMT Distribution: na Organization: The Jonathan Corporation, Norfolk, Virginia Lines: 34 Question: Is there a way to use the "su" command in a script and have the script supply the password, without it having to be typed. I have tried several ways without any success. I've tried: --------------------------------------------------------------------- #! /bin/csh -f su xyz password . . . end ---------------------------------------------------------------------- file: su xyz password $ csh < file ---------------------------------------------------------------------- Thanks in advance. -- Rick Orr