• 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: Change password
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change password


  • Subject: Re: Change password
  • From: Rob Morton <email@hidden>
  • Date: Mon, 29 Jul 2002 11:38:45 -0400

on 7/28/02 4:46 PM, Garry Stokes at email@hidden wrote:

> On 19/7/02 12:44 AM, "Rob Morton" <email@hidden> wrote:
>
>> I am trying to come up with a way to change the password to a default
>> password using AppleScript.
>>
>> Essentially, I am creating a new user with some defaults set. I can do most
>> of it except the password.
>>
>> Anyone have a suggestion for scripting this? Yes, we will be walking the
>> user through a password change, so I really do not care what the password is
>> changed to. I just need a generic password that a technician can use to
>> login as the user for the final setup steps.
>>
> Are you doing this in OSX?
>
> If so try running a terminal script using niutil.
> man niutil
>
> Look in archives of osx server list for "crypt"

Unfortunately, neither of these really helped. I am using niutil pretty
extensively in creating the user, but the password can not be done the same
since it is luckily not clear text. I would need to basically run a command
like passwd <user name> that could change the password (not sure how it
would interact with NetInfo), but this will not work since do shell script
does not understand the concept of interaction. Since I would need to enter
the new password twice, this would not work even if it did change the
NetInfo database correctly. Anyway, if anyone has a work around, I would be
happy. For now, I just open the Users system preference panel.

Rob Morton
_______________________________________________
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.

References: 
 >Re: Change password (From: Garry Stokes <email@hidden>)

  • Prev by Date: Re: Bounding Rectangle [and data type Rect]
  • Next by Date: Re: "attach action to" error in Folder Actions Extension
  • Previous by thread: Re: Change password
  • Next by thread: Newby QuickTime Broadcaster Question
  • Index(es):
    • Date
    • Thread