Working with remote interactive unix apps
Working with remote interactive unix apps
- Subject: Working with remote interactive unix apps
- From: Sander Tekelenburg <email@hidden>
- Date: Wed, 11 Jun 2003 15:28:17 +0200
Question:
How does one talk to "passwd" on a remote machine through AS over ssh?
Background:
I'm using AppleScript as a wrapper around some unix apps to create new users
on a remote machine over a ssh connection. Works fine, except for talking to
the remote machine's passwd. I know about echo. I use it thusly:
do shell script "echo " & remoteIDPass & " | ssh -l " & remoteID & " " &
remoteIP & " sudo doStuff
But I don't see what construction it takes to talk to passwd and set the new
user's passphrase.
I know I can do something like this:
% sudo openssl passwd -crypt -salt username password
to avoid interactive mode. But it only computes - it doesn't _set_ the
passphrase[*]. And it doesn't look like the result is something that can be
passed on to niutil and have it do something useful with it.
[*] Btw, is there any logic in that an app does something different in
interactive mode than in 'normal' mode, and that its man page doesn't say
anything about that?
--
Sander Tekelenburg, <
http://www.euronet.nl/~tekelenb/>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.