Re: How to send Apple Events to a remote account without a password?
Re: How to send Apple Events to a remote account without a password?
- Subject: Re: How to send Apple Events to a remote account without a password?
- From: Uli Zappe <email@hidden>
- Date: Sun, 9 May 2004 15:11:38 +0200
Am 09.05.2004 um 08:20 schrieb John W. Baxter:
I'm trying to send an Apple Event to a remote user account without a
password, but can't figure out how to do that.
If you figure out a way to do it as described, please file a bug report
about a security problem.
Ooops, complete misunderstanding! Sorry I didn't make myself clear.
I *do not* mean that I want to send an Apple Event to a password
protected user account without this very password. If this were
possible, it would of course be a serious security bug.
What I do want is to be able *at all* to send an Apple Event to a Mac
OS X account *that is not password protected* (i.e. it has an empty
string as password).
Such an account is perfectly legitimate under Mac OS X (of course, you
shouldn't be connected to the Internet, or be behind a firewall). Just
leave the password field empty in System Preferences > Users for that
user. As a result, you can log in from the (iconic) login panel with
just one mouse click, without being asked for or having to enter a
password. If you do an su to that user, just click return when prompted
for the password. The same goes for ssh if PermitEmptyPasswords is set
to yes in the sshd config file.
I use such accounts for easy access for "guest" users (especially
children). Now, the strange thing is that what is supposed to make
access especially easy, seems to completely prevent remote AppleScript
access.
This is because I can't figure out a way to specify an empty password.
As I wrote, neither
"eppc://<user>:@<computer>.local"
nor
"eppc://<user>@<computer>.local"
work.
They both presume the password is in fact missing, bring a a password
panel, and don't accept if you leave the password field empty in this
panel.
So, to reformulate my question: how do I specify an *empty password*
for a remote AppleScript connection to a user account whose password is
empty?
That said, you could probably set up ssh on your machine and in your
account
on the remote machine such that you can run code on the remote machine
without having to give the passphrase for the private key you're using
on
your machine. (This is doable.)
Having done that, you should be able to run something with Applescript
which
runs ssh such that it uses that connection to run a suitable script.
Having said all that, I'll also say that I am one Mac short of having 2
modern Macs on which to test this. The "legacy" and mostly retired
7300
doesn't count.
I'm perfectly well aware of the ssh thingy, but I thought there *must*
be a way to simply achieve this without further ado with AppleScript
...
Bye
Uli
________________________________________________________
Uli Zappe, Solmsstra_e 5, D-65189 Wiesbaden, Germany
http://www.ritual.org
Fon: +49-700-ULIZAPPE
Fax: +49-700-ZAPPEFAX
________________________________________________________
_______________________________________________
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.