How to force a same password in Solaris in Solaris 8?


 
Thread Tools Search this Thread
Operating Systems Solaris How to force a same password in Solaris in Solaris 8?
# 1  
Old 03-10-2010
How to force a same password in Solaris in Solaris 8?

hi all
I need to add a user "abcd" and set the password same as the user id. But Solaris 8 is not allowing me to do it, is there any way we can force the password to be same as the user id.
Any help would be appreciated.
Thanks

Code:
bash-3.00# cat /etc/release
                     Solaris 8 HW 7/03 s28s_hw3wos_05a SPARC
           Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
                             Assembled 11 June 2003

New password (? for help):
That password cannot be used because it is based on your username.
Try a different password.


Last edited by Scott; 03-10-2010 at 12:59 PM.. Reason: Code tags please...
# 2  
Old 03-10-2010
This behaviour is controlled by the password policy configured in /etc/security/passwd

I think it is the NAMECHECK entry having a default value of YES.

However, this file will affect all users and for security I would suggest leaving the feature enabled.
# 3  
Old 03-10-2010
Thanks Leebix,
I cannot fine the /etc/security/passwd in my server and also i think vendor must have some kind of software running which is causing this issue.
Is there any other way on OS level to check and disable the service for a while Please?
# 4  
Old 03-10-2010
Quote:
Originally Posted by imran721
Thanks Leebix,
I cannot fine the /etc/security/passwd in my server and also i think vendor must have some kind of software running which is causing this issue.
Is there any other way on OS level to check and disable the service for a while Please?
Try:

/etc/default/passwd and set NAMECHECK=NO
# 5  
Old 03-10-2010
Thanks Verdepollo,
You may be surprise to know that it only has following entreis

Code:
bash-3.00# pwd
/etc/default


bash-3.00# more passwd
#ident  "@(#)passwd.dfl 1.3     92/07/14 SMI"
MAXWEEKS=
MINWEEKS=
PASSLENGTH=6


Last edited by Scott; 03-10-2010 at 01:21 PM.. Reason: Code tags please...
# 6  
Old 03-10-2010
Quote:
Originally Posted by imran721
hi all
I need to add a user "abcd" and set the password same as the user id. But Solaris 8 is not allowing me to do it, is there any way we can force the password to be same as the user id.
Just set abcd password as root, not abcd. Root isn't bound to these rules.
# 7  
Old 03-10-2010
thanks all for your input,
here is a quicker and simplier way for future as i have learnt today
Just copy the encrypted password from other server and paste it into the /etc/shadow file,
voilla................
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Force to reset password after expire

Hi Lads, I would like place the mechanism of force reset password to user when he login to the server after his password expired. Currently, We are resetting users once in every 60 days using cron job but I am thinking is there any other way to force reset passwords after it expires? I am using... (1 Reply)
Discussion started by: Navkreddy
1 Replies

2. Red Hat

how to force a user to change the password

RHEL 5 update 4. How to force a user to change the password at his next logon. Thanks in advance. (8 Replies)
Discussion started by: uxadmin007
8 Replies

3. Solaris

Solaris 8 - Asks for current root password when trying to change root password.

Hello All, I have several solaris boxes running Solaris 8. When changing root passwords on them, all will simply ask for the new root password to change and of course to re-type the new password. One of the systems however asks for the existing root password before it will display the new password... (8 Replies)
Discussion started by: tferrazz
8 Replies

4. Solaris

how to force e1000g0 interface in solaris 10

Hi all, I encounter some problem with my e1000g interface running on sol 10. I can't permanently change the auto-nego to disable, if i use ndd commands, it will only stay until the next reboot. But i can't change the link speed either is set to /etc/init.d/nddconfig or using ndd commands. ... (1 Reply)
Discussion started by: mailbox80
1 Replies

5. Solaris

force umount in solaris 2.6

Hi All, Can someone share with me how to force umount in solaris 2.6? Thanks Leong (3 Replies)
Discussion started by: bkleong
3 Replies

6. Solaris

Solaris 9 Password

Hello, I'm new to solaris but am a certified systems administrator. I was recently brought the task of repairing a sunblade150 and was completely willing to take on this task without knowing the history behind this system. Apparently some slick S.O.B. from ebay bought this system, took the... (13 Replies)
Discussion started by: matt81
13 Replies

7. UNIX for Advanced & Expert Users

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?... (3 Replies)
Discussion started by: champion
3 Replies

8. Cybersecurity

How to force NIC full 100 dpx in Solaris 8

Does any body knows how to force NIC to 100 Full Duplex in Solaris 8, should survive after reboot or shutdown. (2 Replies)
Discussion started by: s_aamir
2 Replies

9. UNIX for Advanced & Expert Users

How to force NIC full 100 dpx in Solaris 8

Does any body knows how to force NIC to 100 Full Duplex in Solaris 8, should survive after reboot or shutdown. (1 Reply)
Discussion started by: s_aamir
1 Replies

10. UNIX for Advanced & Expert Users

Force Password Change...RedHat 7.1

Hello, I just finished adding a bunch of new users to the linux servers I administer. I add users either via command line or via linuxconf, but I can't seem to find out how to force users to change their passwords on their first login to the system. Anyone know how to do that? My HP-UX... (1 Reply)
Discussion started by: vancouver_joe
1 Replies
Login or Register to Ask a Question