Hello
I am trying to replace a password in a Solaris shadow file that is locked with a new passwd, but I can not get it to retain my upper case characters.
This is a one liner that works, but it doesnt retain the case.
I am very new at this, but here is what I have:
perl -spi -e 's/^'\newuser:\*LK\*:/'\newuser:\$1\$\jdksWPrA\$\LeYykxnNPhUD8RXP8SpHyt\/\:/' /etc/shadow
Would someone please help me and tell me how to retain my uppercase characters. I have tried /i for ignore and it didnt do anything.
TIA
LA
I am trying to replace a password in a Solaris shadow file that is locked with a new passwd, but I can not get it to retain my upper case characters.
This is a one liner that works, but it doesnt retain the case.
I am very new at this, but here is what I have:
perl -spi -e 's/^'\newuser:\*LK\*:/'\newuser:\$1\$\jdksWPrA\$\LeYykxnNPhUD8RXP8SpHyt\/\:/' /etc/shadow
Would someone please help me and tell me how to retain my uppercase characters. I have tried /i for ignore and it didnt do anything.
TIA
LA