Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
01-28-2009, 03:44 PM
#1
Member
Registered: Apr 2004
Location: Baltimore, MD
Posts: 680
Rep:
[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.
01-29-2009, 02:58 AM
#2
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165
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.
02-18-2009, 12:14 AM
#3
Member
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 387
Rep:
does the usermod -L and -U options not valid?
02-18-2009, 03:59 AM
#4
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165
There are indeed no such options available to Solaris usermod.
02-18-2009, 12:07 PM
#5
Member
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596
Rep:
Ok, maybe I am wrong....But you can use the SMC Console perhaps...See if theres any options on that.
02-18-2009, 07:07 PM
#6
Member
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 387
Rep:
i think the passwd -l username will do it?
02-18-2009, 07:30 PM
#7
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165
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.
02-18-2009, 07:52 PM
#8
Member
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 387
Rep:
Quote:
Originally Posted by
jlliagre
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
09-04-2009, 03:54 PM
#9
LQ Newbie
Registered: Sep 2009
Posts: 10
Rep:
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?
09-04-2009, 05:15 PM
#10
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,443
are you running it as root?
09-04-2009, 06:11 PM
#11
LQ Newbie
Registered: Sep 2009
Posts: 10
Rep:
yes, I am logged in as root, and I am trying to change the settings for user 'sud'
09-04-2009, 11:55 PM
#12
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165
09-06-2009, 10:13 PM
#13
LQ Newbie
Registered: Sep 2009
Posts: 10
Rep:
cat: /etc/release: No such file or directory
09-07-2009, 01:10 AM
#14
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165
I would conclude you aren't running Solaris. What says
?
09-07-2009, 04:20 AM
#15
LQ Newbie
Registered: Sep 2009
Posts: 10
Rep:
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
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 08:02 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News