• 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
RE: do shell script and passwords
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: do shell script and passwords


  • Subject: RE: do shell script and passwords
  • From: garbanzito <email@hidden>
  • Date: Wed, 12 Jun 2002 11:19:37 -0600

at 2002 06 07, 22:27 +0100, they whom i call Daisy Whitman wrote:
you can check the password before with this script:

set myPassword to "..."
set myresult to "wrong"
try
set myresult to (do shell script "sudo -v"
password myPassword with administrator
privileges)
[...]


just noticed this and wanted to note that sudo -v will
*succeed* with an incorrect password if the user's sudo
timestamp is still alive. so to really verify the password,
precede it with sudo -k.

--
steve harley email@hidden
_______________________________________________
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: do shell script and passwords (epilogue)
      • From: garrett <email@hidden>
References: 
 >RE: do shell script and passwords (From: Daisy Whitman <email@hidden>)

  • Prev by Date: Re: Checking for existence of file on remote server
  • Next by Date: Re: applescript and graphics programs
  • Previous by thread: RE: do shell script and passwords
  • Next by thread: Re: do shell script and passwords (epilogue)
  • Index(es):
    • Date
    • Thread