Privileged shutdown
Privileged shutdown
- Subject: Privileged shutdown
- From: Bernard Azancot <email@hidden>
- Date: Sat, 24 Jul 2004 12:59:00 +0200
This shutdown dialog snippet is OK when the user is the administrator,
but not with another user.
When I replace the administrator password by the other user one,
nothing happens (the shudown does not occur).
--
if button returned of result is "OK" then
do shell script "/sbin/shutdown -h now" password "xxxx" with
administrator privileges
end if
--
Any suggestion ?
Thanks in advance.
Regards,
Bernard
_______________________________________________
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.