• 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: Alex Robinson <email@hidden>
  • Date: Fri, 7 Jun 2002 22:25:45 +0100

>How do I get feedback from a script that the command sent an incorrect
>password?

You should be getting an execution error, but...

>Am I missing something? Is my correct password being cached somewhere by
>some part of this process (before I tried to create an error trapping
>routine for a bad password, I had been using the script with the correct
>password).

Yep. The admin password (as with sudo) is cached for 5 minutes by default -
see man sudo. Run the command sudo -k to make sure that the cache is
deleted. If you can still run the process with a dodgy password then
something is definitely up
_______________________________________________
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
      • From: garrett <email@hidden>
References: 
 >do shell script and passwords (From: garrett <email@hidden>)

  • Prev by Date: Re: do shell script and passwords
  • Next by Date: Re: do shell script and passwords
  • Previous by thread: Re: do shell script and passwords
  • Next by thread: Re: do shell script and passwords
  • Index(es):
    • Date
    • Thread