LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   [Solaris 9] unlock user account (https://www.linuxquestions.org/questions/solaris-opensolaris-20/%5Bsolaris-9%5D-unlock-user-account-700618/)

noir911 01-28-2009 03:44 PM

[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.

jlliagre 01-29-2009 02:58 AM

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.

ic_torres 02-18-2009 12:14 AM

does the usermod -L and -U options not valid?

jlliagre 02-18-2009 03:59 AM

There are indeed no such options available to Solaris usermod.

as400 02-18-2009 12:07 PM

Ok, maybe I am wrong....But you can use the SMC Console perhaps...See if theres any options on that.

ic_torres 02-18-2009 07:07 PM

i think the passwd -l username will do it?

jlliagre 02-18-2009 07:30 PM

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.

ic_torres 02-18-2009 07:52 PM

Quote:

Originally Posted by jlliagre (Post 3448926)
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.


oh sorry :) yup its passwd -u username thanks for the correction sir :o

sudarsh 09-04-2009 03:54 PM

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?

AlucardZero 09-04-2009 05:15 PM

are you running it as root?

sudarsh 09-04-2009 06:11 PM

yes, I am logged in as root, and I am trying to change the settings for user 'sud'

jlliagre 09-04-2009 11:55 PM

What says:
Code:

cat /etc/release
?

sudarsh 09-06-2009 10:13 PM

cat: /etc/release: No such file or directory

jlliagre 09-07-2009 01:10 AM

I would conclude you aren't running Solaris. What says
Code:

uname -a
?

sudarsh 09-07-2009 04:20 AM

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.