From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Anthony Pilley Newsgroups: gmane.os.tru64.managers Subject: Prob with ssh where users shell is tsh - trying to re-authenticate user Date: Wed, 18 Jun 2003 09:38:27 +1000 Organization: University of Sydney, Orange Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <005301c33529$8d2b1cd0$d2344e81@oac> Reply-To: apilley@orange.usyd.edu.au NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1055893118 5201 80.91.224.249 (17 Jun 2003 23:38:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2003 23:38:38 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Jun 18 01:38:36 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19SQ28-0001Lb-00 for ; Wed, 18 Jun 2003 01:38:36 +0200 Original-Received: (qmail 30571 invoked by uid 5); 17 Jun 2003 23:38:30 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 30562 invoked by uid 49493); 17 Jun 2003 23:38:30 -0000 Original-Received: from apilley@oac.usyd.edu.au by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-1.0/5.0):. Processed in 0.402659 secs); 17 Jun 2003 23:38:30 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 17 Jun 2003 23:38:29 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGN00NXCGC42W@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 17 Jun 2003 19:38:29 -0400 (EDT) Original-Received: from banjo.orange.usyd.edu.au (banjo.oac.usyd.edu.au [129.78.52.5]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGN0058ZGBZG6@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 17 Jun 2003 19:38:25 -0400 (EDT) Original-Received: from apilley (apilley.oac.usyd.edu.au [129.78.52.210]) by banjo.orange.usyd.edu.au (8.10.0/8.10.0) with ESMTP id h5HNcMv18815 for ; Wed, 18 Jun 2003 09:38:22 +1000 (EST) Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:4576 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4576 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 touch 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