tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Graham.Charley () uk ! nestle ! com
To: tru64-unix-managers
Subject: SUMMARY - Is it possible to su to another user in middle of korne
Date: Wed, 12 Jul 2000 14:24:50 +0000	[thread overview]
Message-ID: <96341195311295.tru64-unix-managers.marc@archive.invalid> (raw)

Thanks to all those who responded.
 
The consensus of opinion is to use the -c option for su which enables
another users privs to be accessed without generating a new shell for that
user
su - <user> -c "<command; command; etc>"

using rsh having first set up user in .rhosts on remote machine, was also
suggested
 
a further suggestion which I include in full sounds interesting, and I shall
try at some later date
Get TCL/TK & expect. Expect allows you to run interactive commands (like a
shell)in a script, sending data to the process and reading the response and
taking appropriate actions.

Graham Charley

                 reply	other threads:[~2000-07-12 14:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox