LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 01-28-2009, 03:44 PM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Rep: Reputation: Disabled
[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.
 
Old 01-29-2009, 02:58 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
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.
 
Old 02-18-2009, 12:14 AM   #3
ic_torres
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: 389

Rep: Reputation: 34
does the usermod -L and -U options not valid?
 
Old 02-18-2009, 03:59 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
There are indeed no such options available to Solaris usermod.
 
Old 02-18-2009, 12:07 PM   #5
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Rep: Reputation: 30
Ok, maybe I am wrong....But you can use the SMC Console perhaps...See if theres any options on that.
 
Old 02-18-2009, 07:07 PM   #6
ic_torres
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: 389

Rep: Reputation: 34
i think the passwd -l username will do it?
 
Old 02-18-2009, 07:30 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
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.
 
Old 02-18-2009, 07:52 PM   #8
ic_torres
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: 389

Rep: Reputation: 34
Quote:
Originally Posted by jlliagre View Post
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
 
Old 09-04-2009, 03:54 PM   #9
sudarsh
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Rep: Reputation: 0
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?
 
Old 09-04-2009, 05:15 PM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
are you running it as root?
 
Old 09-04-2009, 06:11 PM   #11
sudarsh
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Rep: Reputation: 0
yes, I am logged in as root, and I am trying to change the settings for user 'sud'
 
Old 09-04-2009, 11:55 PM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
What says:
Code:
cat /etc/release
?
 
Old 09-06-2009, 10:13 PM   #13
sudarsh
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Rep: Reputation: 0
cat: /etc/release: No such file or directory
 
Old 09-07-2009, 01:10 AM   #14
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
I would conclude you aren't running Solaris. What says
Code:
uname -a
?
 
Old 09-07-2009, 04:20 AM   #15
sudarsh
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using RHEL 64bit Not sure how to unlock an account mccartjd Linux - Newbie 2 04-24-2008 06:26 AM
Prevent user account from logging in but allow su to account DejaCpp Linux - General 4 07-26-2006 11:44 AM
User Account to Access Another Account benfaust Linux - General 2 06-28-2006 12:26 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Can unlock screen with root password in my user account - want to change this sm1 Linux - Newbie 2 07-24-2005 05:54 AM


All times are GMT -5. The time now is 01:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration