• 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
how to authenticate in order to run a sudo shellscript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to authenticate in order to run a sudo shellscript?


  • Subject: how to authenticate in order to run a sudo shellscript?
  • From: <email@hidden>
  • Date: Mon, 1 Mar 2004 16:45:14 +1100

hi there

i want to write an applescript what asks the (admin) user to authenticate
and then do some backup work as root in a shellscript via sudo.

just calling a sudo works fine as long as the admin user _has_ authenticated
via sudo shorty before. but what can i do in the applescript when the user
is not authenticated? how can i test the users auth status in applescript
and how can i authenticate the user, so that runing some sudo stuff won't
fail?

thanks for any advice.

leo
_______________________________________________
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.


  • Next by Date: Mac OS X Applescript progress bar
  • Next by thread: Re: how to authenticate in order to run a sudo shellscript?
  • Index(es):
    • Date
    • Thread