tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY - Is it possible to su to another user in middle of korne
@ 2000-07-12 14:24 Graham.Charley
  0 siblings, 0 replies; only message in thread
From: Graham.Charley @ 2000-07-12 14:24 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-07-12 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-12 14:24 SUMMARY - Is it possible to su to another user in middle of korne Graham.Charley

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