Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automating changing the root password



Title: Automating changing the root password
Hello,

I am trying to use nicl or dscl or niutil to change the root password and disable the account.

This worked on 10.3.6

        --encypting password using openssl
        set rootPassword to (do shell script "openssl passwd '" & rootpwd1 & "'")
        do shell script "sudo niutil -createprop . /users/root passwd '*" & rootPassword & "'"

Any suggestions are appreciated.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.