Re: su Command from a script with Password?
From: Chris F.A. Johnson (c.f.a.johnson_at_rogers.com)
Date: 05/31/03
- Previous message: Erik Max Francis: "Re: Dynamic Linking and Loading in an odd way"
- Maybe in reply to: Greg Ennis: "Re: su Command from a script with Password?"
- Next in thread: Kurtis D. Rader: "Re: su Command from a script with Password?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 31 May 2003 21:43:54 GMT
On Fri, 30 May 2003 at 20:49 GMT, Greg Ennis wrote:
> Group,
>
> I need to use the su command from a script with a known password. The
> origen account is not root, but the password to the destination
> account is known. I can not figure out a way to switch to that
> account inside a script unless I am no the root account. Is there a
> way to supply the password on the command line so that using the root
> account is not necessary.
>
> I am running SCO OpenServer(TM) Release 3.2v5.0.5
Use sudo to give the user permission to execute a particular script
or program as root.
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2003, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
- Previous message: Erik Max Francis: "Re: Dynamic Linking and Loading in an odd way"
- Maybe in reply to: Greg Ennis: "Re: su Command from a script with Password?"
- Next in thread: Kurtis D. Rader: "Re: su Command from a script with Password?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|