Home > Archive > Tcl > July 2004 > Exptect
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Doogie 2004-07-20, 4:00 pm |
| Hi, we have a support group that looks after a couple of hundred
unix/linux systems. Each support person has a list of root passwords
for each system. Any time staff changes we have a security risk until
the passwords are changed.
I would like to write a program that would create a telnet/ssh session
and log the user on and then leave the terminal session open so they
can do their job. This way the support personnel wouldn't have to
know the root passwords.
I know expect can create the session, log the user on, but can it
leave the session open for normal use?
If expect can't do it, does anyone have any suggestions where I could
look to provide this functionality.
TIA
dj
| |
| Bruce Hartweg 2004-07-20, 4:00 pm |
|
Doogie wrote:
> Hi, we have a support group that looks after a couple of hundred
> unix/linux systems. Each support person has a list of root passwords
> for each system. Any time staff changes we have a security risk until
> the passwords are changed.
>
> I would like to write a program that would create a telnet/ssh session
> and log the user on and then leave the terminal session open so they
> can do their job. This way the support personnel wouldn't have to
> know the root passwords.
>
> I know expect can create the session, log the user on, but can it
> leave the session open for normal use?
>
> If expect can't do it, does anyone have any suggestions where I could
> look to provide this functionality.
>
> TIA
> dj
yes it can - the command you need is called interact
Bruce
|
|
|
|
|