Running script with admin privileges without admin login
Running script with admin privileges without admin login
- Subject: Running script with admin privileges without admin login
- From: "Dr. Max Bonilla" <email@hidden>
- Date: Thu, 05 Feb 2004 11:50:20 -0500
Hello everyone,
Here's a problem one of my colleagues has. Perhaps someone can help us. He
sent me this explanation:
This script works fine if you execute it as an administrator user, but not
as a normal user. I'm trying to figure out a way to execute this in the
Student user account, which is not an administrator account. The other
problem is that I am planning on having this script be a hidden login item,
so any solution that would require the administrator password to be typed in
is not an option.
on run
do shell script ,
"sudo /System/Library/StartupItems/mDNSResponder/mDNSResponder stop"
password "password" with administrator privileges
end run
Any ideas? Thanks a million.
Max
_______________________________________________
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.