A
azrail
Guest
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
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
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
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