Solaris passwd problem


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris passwd problem
# 1  
Old 09-23-2010
Solaris passwd problem

Hi,

I am using solaris 10. i am facing a strange problem regarding os passwd. i have a user oracle with passwd abc123

when i open a putty session with the os using abc123 it logs on. but if i use abc123!@# it agian log on without passwd error.

I came to know about the issue that if i use correct password but add any other word in the end like abc123123123 my user logon.

it shouldn't work with wrong passwd?

Plz help me
# 2  
Old 09-23-2010
According to the passwd man page, passwords must be 6 chars, and only the first 8 characters are significant. So if you set your password to abc123abc123, anything starting with abc123ab will work.
This is what you are experiencing, except you seem to have only 6 significant characters. I'm not sure offhand where this is set to six. But what you are seeing is not too strange.
This User Gave Thanks to mikejordan For This Post:
# 3  
Old 09-24-2010
thanks,


can we change this significat number. i.e. from 8 to 10 etc.
# 4  
Old 09-24-2010
Hi Malikshaid85

Assuming you're not using NIS or have had PAM modifications applied, check:

/etc/default/passwd

There's an entry in there which controls password length, eg:

PASSLENGTH=6

There are some other parameters there you may wish to examine.

Hope this helps

Cheers

RandomSun
# 5  
Old 09-24-2010
thanks,

PASSLENGTH=6

Means password lenght must be at least 6. but how to change the significant length.i.e only 1st 8 characters are significant by default in solaris.

so i want to know how to change the significant length of the password?
# 6  
Old 09-24-2010
Switch to something newer than the crypt algorithm.

Supported algorithms are listed in /etc/security/crypt.conf

To change the default one, modify the "CRYPT_DEFAULT=xxx" line in /etc/security/policy.conf
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

snmp trap for passwd file deltas in solaris

Hello I am trying to monitor when a user account gets added to my solaris server. Does anyone know how I can set up an snmptrap for changes in the /etc/passwd file ? (4 Replies)
Discussion started by: prince2010
4 Replies

2. Solaris

Solaris passwd script

Hello all, Since Solaris passwd does not have --stdin option can you advise how to change the password for 30 users with a script. The password can be the same one. I`ve tried already echoing, xargs, cat and similar. Thanks. ---------- Post updated at 04:04 AM ---------- Previous update... (0 Replies)
Discussion started by: click
0 Replies

3. Programming

C++ - Problem in asking and checking user's passwd

This is the source code: #include <pwd.h> #include <iostream> #include <string.h> using namespace std; int main() { struct passwd *user; char login="alex", password="qwertyuiop"; if ((user= getpwnam(login)) == NULL) cout << "No such user\n"; else if... (24 Replies)
Discussion started by: hakermania
24 Replies

4. Solaris

Solaris 10 allow ssh login with empty passwd

I have turned off PermitEmptyPasswords in sshd_config, but a user with empty passwd (deleted by passwd -d user) can still login without password, why? it is big security concern, linux doesn't have the issue. $ uname -a SunOS 5.10 Generic_118855-14 i86pc i386 i86pc ... (8 Replies)
Discussion started by: honglus
8 Replies

5. Emergency UNIX and Linux Support

Passwd command problem

on Runnning passwd command on HPUX 11.23 I am getting pam_chauthtok: Shared object load failure. Pls help ... (13 Replies)
Discussion started by: ultimatix
13 Replies

6. Solaris

solaris 8 passwd

Dear all, One one of the systems running solaris 8 the oracle account has a issue when trying to set the passwd. Following is what i get when the passwd command is executed. :/opt/oracle> passwd Enter existing login password: System configuration error. Please contact your administrator.... (1 Reply)
Discussion started by: earlysame55
1 Replies

7. UNIX for Advanced & Expert Users

change passwd remotely in solaris 10

i'm trying to change passwd remotely in unix (solaris) and tried using "expect" but it is not working. Any ideas to change the passwd remotely using a shell script? (1 Reply)
Discussion started by: pharos467
1 Replies

8. UNIX for Dummies Questions & Answers

Dont have the root passwd for Solaris 8

Hello chiefs :) I have a SUN Enterprise 250, running Solaris 8.5 - I have managed to be able to connect a dumb terminal to the box via a standard straight-through rj45 cable, to my ibm laptop. OK so Putty can connect to the box via ssh - nice! But I dont have the password for root - or any... (1 Reply)
Discussion started by: congo
1 Replies

9. Solaris

problem in changing the NIS passwd

Now I face a problem in changing the NIS passwd,I have no idea,want you to help me! Today I add some user in the NIS master server ,I "vi" /etc/passwd &/etc/shadow,add user account and password by hand(shadow----no password ,only eight ":"). when finsh,I login ,system told me to input a password... (3 Replies)
Discussion started by: dlsjm
3 Replies

10. Solaris

Passwd History in Solaris 8

How to set passwd history feature in Solaris 8 to stop users from using their old passwords? (4 Replies)
Discussion started by: amoorti
4 Replies
Login or Register to Ask a Question