[Solaris 9] unlock user account
I locked a normal user account via admintool. But how do I unlock it? If I select password as 'normal password' it asks me for a new one! But I don't want to put a new password - all I want is to unlock the account I locked.
Thanks for any help on how to do this. |
Locking the account is done by replacing the user's password by an "impossible" one. Unlocking can only be done by setting a new password to the user.
|
does the usermod -L and -U options not valid?
|
There are indeed no such options available to Solaris usermod.
|
Ok, maybe I am wrong....But you can use the SMC Console perhaps...See if theres any options on that.
|
i think the passwd -l username will do it?
|
That would lock the account, not unlock it. Thanks anyway for pointing to the right direction to properly answer to the open poster question.
Starting from Solaris 10, it is actually possible to unlock an locked account by using the "passwd -u" command. |
Quote:
oh sorry :) yup its passwd -u username thanks for the correction sir :o |
When i try the command
passwd -l <username> it returns: Cannot unlock the password for `sud'! Can anyone tell how to resolve this issue? I read in some site that it is possible to "force" an unlock. How can I do this? |
are you running it as root?
|
yes, I am logged in as root, and I am trying to change the settings for user 'sud'
|
What says:
Code:
cat /etc/release |
cat: /etc/release: No such file or directory
|
I would conclude you aren't running Solaris. What says
Code:
uname -a |
Linux server-1 2.6.18.2-34.nx22-bigsmp #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 i686 i386 GNU/Linux
|
All times are GMT -5. The time now is 02:57 PM. |