- This topic has 6 replies, 4 voices, and was last updated 16 years, 4 months ago by
mleacy.
-
AuthorPosts
-
November 21, 2008 at 8:47 pm #374834
mleacy
ParticipantI used createUser, and followed the instructions for shadowHash.
On booting my system, it will not accept the password. I even went back through my bash history to make sure I wasn’t misremembering and/or I didn’t mistype the password originally.
The password_hash file was created after I ran “shadowHash mypassword>password_hash”. It contains what looks like a password hash.
Any suggestions?
November 21, 2008 at 10:37 pm #374835larkost
ParticipantAre you sure you have the right UUID applied to the file, and have you checked to make sure that it is being put in the right place on the target system in (/private)/var/db/dslocal/nodes/Default/users? And have you checked permissions (root-only)?
November 24, 2008 at 3:39 pm #374840mleacy
Participant[QUOTE][u]Quote by: larkost[/u][p]Are you sure you have the right UUID applied to the file, and have you checked to make sure that it is being put in the right place on the target system in (/private)/var/db/dslocal/nodes/Default/users? And have you checked permissions (root-only)?[/p][/QUOTE]
I did not look at any of this. I followed the instructions in the readme file.
[code]From Terminal:
1. type “cd ” then drag the Resources folder from the finder into terminal, this will paste the full path of the resources folder into the shell, then hit enter
2. Type the following:
./shadowHash yourpassword>password_hash[/code]I did notice this in the readme file:
3. At MINIMUM you need a valid short name and a method to generate password (see GENERATING PASSWORDS below). [b]To ease in validation, it will only accept short names with letters, numbers and underscore that are 1-31 characters.[/b]
(emphasis mine)
Does this apply to hashes created by the shadowHash script, or just to cleartext passwords entered into the USERDATA file? I has assumed this statement applied only to the USERDATA file. My password has several special characters.
November 24, 2008 at 9:05 pm #374846Rusty Myers
Participant[QUOTE][u]Quote by: mleacy[/u][p]I used createUser, and followed the instructions for shadowHash.
On booting my system, it will not accept the password. I even went back through my bash history to make sure I wasn’t misremembering and/or I didn’t mistype the password originally.
The password_hash file was created after I ran “shadowHash mypassword>password_hash”. It contains what looks like a password hash.
Any suggestions?
[/p][/QUOTE]
Does your password include anything special besides letters and numbers? Check this thread if your using reserved characters.
https://www.afp548.com/forum/viewtopic.php?showtopic=20674&mode=&show=5&page=3
You have to comment them out when making your password hash.
November 25, 2008 at 3:23 pm #374858akinspe
Participant[QUOTE]Does this apply to hashes created by the shadowHash script, or just to cleartext passwords entered into the USERDATA file? I has assumed this statement applied only to the USERDATA file. My password has several special characters.[/QUOTE]
you may need to enclose your password in quotes depending on the characters used. This is not a function of shadowhash, but rather a consequence of the shell interpreting your characters.
i.e.
./shadowHash “yourpassword”>password_hash
Hope this helps
November 25, 2008 at 3:54 pm #374862Rusty Myers
Participant[QUOTE][u]Quote by: akinspe[/u][p][QUOTE]Does this apply to hashes created by the shadowHash script, or just to cleartext passwords entered into the USERDATA file? I has assumed this statement applied only to the USERDATA file. My password has several special characters.[/QUOTE]
you may need to enclose your password in quotes depending on the characters used. This is not a function of shadowhash, but rather a consequence of the shell interpreting your characters.
i.e.
./shadowHash “yourpassword”>password_hash
Hope this helps[/p][/QUOTE]
I’ve found that it is required to escape special charachters in the hash, quotes did not work for me. I could have quotes or no quotes, but unless I escaped those characters, it failed. Example:
If your pass =
“mypass|word”
then
your password must have characters escaped like:
“mypass\|word”
else
fail
fiNovember 25, 2008 at 4:07 pm #374863mleacy
ParticipantRiiiight. Escaping special characters. There’s my user moment for the day. Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed