• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Running script with admin privileges without admin login
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Running script with admin privileges without admin login
      • From: Graff <email@hidden>
  • Prev by Date: Re: Very basic "write to file" query
  • Next by Date: Re: Do shell script on a remote machine
  • Previous by thread: Re: "Choose folder" not working for NT server
  • Next by thread: Re: Running script with admin privileges without admin login
  • Index(es):
    • Date
    • Thread