Force to change to a different password | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Force to change to a different password

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-16-2003
champion champion is offline
Registered User
 
Join Date: Jul 2002
Last Activity: 15 November 2005, 5:10 AM EST
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Force to change to a different password

Hi,

I notice in my Sun Solaris 8 sparc worstation, I am able to change my password to same existing password.

That is, right now my password is abc, and I change it with "passwd" command and change it abc again. It will accept.

How can I make it such that it will not accept same password?

Thanks
Sponsored Links
    #2  
Old 01-16-2003
shibz shibz is offline
Registered User
 
Join Date: Nov 2001
Last Activity: 9 May 2007, 3:24 PM EDT
Location: Inida
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

It looks like you are the superuser and having the problem in password validation.

I mean say your username is champion and you are logged in as super user,

then

# passwd champion

Will not do the validation of the basic rules like difference of 3 characters, min length etc...

but if you are logged in as champion and invoke passwd.

%passwd

Then the validation takes place...


This is what I experienced with my set of Sun systems.

In fact I am also curious to know why is this so.... Hope somebody can throw more light on this....
Sponsored Links
    #3  
Old 01-16-2003
RTM's Avatar
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 17 October 2014, 8:46 PM EDT
Location: On my motorcycle
Posts: 3,093
Thanks: 1
Thanked 32 Times in 9 Posts
Shibz,

If a person signed into or su'ed to the root account could not reset a password (either to the same thing or something new) then you would have accounts that would get locked/forgotten-password that you would have to delete and recreate.

Champion,
As far as setting the same password - are you using NIS or NIS+?
    #4  
Old 01-16-2003
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
 
Join Date: Aug 2001
Last Activity: 18 April 2013, 3:03 PM EDT
Location: San Antonio, TX,
Posts: 1,070
Thanks: 0
Thanked 4 Times in 4 Posts
/agree

The SA has unrestricted rights to the passwd command. And can operate freely unless the SA puts said restrictions on the root account itself.

The SA should be able to set the password for any user, even to the exact same passwd as before.

If as a user you type $passwd <enter>, you are subject to whatever the user restrictions are as setup by the SA, as opposed to the SA issuing # passwd champion. The SA could even set a passwd for a user that violates rules that the user lvls would be FORCED to use if they set their own passwd.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to force a user to change the password uxadmin007 Red Hat 8 10-07-2009 06:06 PM
force to change password(by modifying /etc/shadow) tjay83 Shell Programming and Scripting 6 09-27-2008 08:56 AM
force to change password(shell script) tjay83 Shell Programming and Scripting 3 09-19-2008 12:16 AM
How to force user to change password at login? penguin-friend UNIX for Advanced & Expert Users 10 07-08-2002 11:46 AM
Force Password Change...RedHat 7.1 vancouver_joe UNIX for Advanced & Expert Users 1 02-22-2002 02:12 AM



All times are GMT -4. The time now is 01:14 PM.