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

From: Anthony Pilley (apilley@orange.usyd.edu.au)
Date: Tue Jun 17 2003 - 19:38:27 EDT


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@orange.usyd.edu.au



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:23 EDT