Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
NetInfo and password creation
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="azrail" data-source="post: 29399"><p>I posted this in the OS area, but I think this is aslo a forum this should be in.</p><p></p><p>I am attempting to write a script that (when run only by root) will be able </p><p>to create a user with a password. Now this dosent seem hard, except that </p><p>the creation has to be done with out interaction from the user. Hence the </p><p>command 'passwd ' is out. So I found that in </p><p>[CODE]/private/usr/db/shadow/hash/gnereateduid[/CODE]</p><p>is where the password is stored. I am wondering how to generate that </p><p>password. In the netInfo database if</p><p></p><p>passwod_authentication is set to ;Basic; </p><p>then a htpasswd -nb passwordhere </p><p></p><p>stored in the passwd field works. And as I have heard this is the standard </p><p>for pre 10.3 versions of X. But 10.3 now allows the ;ShadowHash; option </p><p>for authentication. And I am wondering how to generate that </p><p>ShadowHash'd password. </p><p></p><p>Any help would be awesome, even if it's "I dont know at all" would be cool.</p><p></p><p>Thanks</p><p></p><p>--</p><p>Dave Walker</p></blockquote><p></p>
[QUOTE="azrail, post: 29399"] I posted this in the OS area, but I think this is aslo a forum this should be in. I am attempting to write a script that (when run only by root) will be able to create a user with a password. Now this dosent seem hard, except that the creation has to be done with out interaction from the user. Hence the command 'passwd ' is out. So I found that in [CODE]/private/usr/db/shadow/hash/gnereateduid[/CODE] is where the password is stored. I am wondering how to generate that password. In the netInfo database if passwod_authentication is set to ;Basic; then a htpasswd -nb passwordhere stored in the passwd field works. And as I have heard this is the standard for pre 10.3 versions of X. But 10.3 now allows the ;ShadowHash; option for authentication. And I am wondering how to generate that ShadowHash'd password. Any help would be awesome, even if it's "I dont know at all" would be cool. Thanks -- Dave Walker [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
NetInfo and password creation
Top