Prob with ssh where users shell is tsh - trying to re-authenticate user

From: Anthony Pilley <apilley_at_orange.usyd.edu.au>
Date: Wed, 18 Jun 2003 09:38:27 +1000

Tru64 users


I am tring to get users to re-authenticate each time they run a
particular application.
I created a script that does a ssh to the same server which 'touches' a
file in the users home dir.
    ssh <servername> touch <filename>
and then checks to see if the file exists.
If it does, the re-authenticate worked, and the user is allowed to run
the app
if it doesnt, they go back to the menu again.

This all works fine for me, as my default shell is 'csh' but my users
have theirs set to 'tsh'
and it asks for and accepts the password, but doesnt run the 'touch'
command and errors:
    stty: tcgetattr: Invalid argument
    Not a terminal

Is there any way of doing this,
Or should I be looking in a whole different direction
Thanks


 Anthony Pilley
Computer System Officer
Lan Manager
University of Sydney Orange
Faculty of Rural Management
email: apilley_at_orange.usyd.edu.au
Received on Tue Jun 17 2003 - 23:39:00 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT