psswd&shadow 2 passwd together?!!


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users psswd&shadow 2 passwd together?!!
# 8  
Old 09-21-2011
One is 7 char, second is 12 char long. They both work for the same account.


T

Last edited by trento17; 09-22-2011 at 01:33 AM..
# 9  
Old 09-21-2011
anything after first 8 is ignored for systems using DES.
# 10  
Old 09-22-2011
Thanks, Frank, thanks all
Still I don't understand why those 2 different passwords work for me, they have different chars/order . Can anybody can explain this for me or send to any info.
I just checked they have diff md5 value, even for first 7 and 8 chars. Those are completely diff combinations.

Gracias
T
# 11  
Old 09-22-2011
I have never used RHEL and seldom use Linux, but my first guess would be that your system is using PAM and that it's configured to allow multiple forms of authentication. Perhaps the contents of /etc/pam.d/login (if it exists on your system) might shed some light.

Regards,
Alister
# 12  
Old 09-22-2011
Quote:
Originally Posted by trento17
Thanks, Frank, thanks all
Still I don't understand why those 2 different passwords work for me, they have different chars/order . Can anybody can explain this for me or send to any info.
I just checked they have diff md5 value, even for first 7 and 8 chars. Those are completely diff combinations.

Gracias
T
what is the output after execute the below command?
Code:
$ cat /etc/pam.d/system-auth /etc/nsswitch.conf

# 13  
Old 09-22-2011
Quote:
Originally Posted by trento17
Still I don't understand why those 2 different passwords work for me, they have different chars/order . Can anybody can explain this for me or send to any info.
Just a suggestion:

The hashing algorithm (at least the original one mentioned by Corona and some others used - don't know which exactly you are employing here) was a surjective function. This means that every password has one and only one hash value, but not every hash value has exactly one password. Several passwords can have the same hash value.

This might be the case here.

I hope this helps.

bakunin
# 14  
Old 09-22-2011
Thanks, I'll check and get back.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Supress the psswd from ps in ksh/bash

I am running the ETL job to passing the database username,pssswd positional arguments to shell script (bash) and how can we suppress/hide the password from ps command. (2 Replies)
Discussion started by: pimmit22043
2 Replies

2. Solaris

Passwd -l or -u modifies lastchg field in /etc/shadow file

Hi, I have a Solaris 10 box where password aging is not functioning properly. Using the passwd command with the -l or -u options causes the lastchg field in the /etc/shadow file to be modified. Therefore, if a user's password is set to expire in 90 days and they are 1 day away, all they have... (4 Replies)
Discussion started by: cschar
4 Replies

3. Solaris

Passwd,shadow files deleted and abort sequence disabled

Hi all.. I moved the /etc/shadow and /etc/shadow files to /tmp and then rebooted my PARC machine running 5.10. I did it to see if I could recover from single user mode. But, I forgot to enable the abort key-sequence which I earlier disabled. Stuck! One of my gurus told I had to... (9 Replies)
Discussion started by: satish51392111
9 Replies

4. Solaris

difference between /etc/shadow and /etc/default/passwd

Hi , can anyone explain me the difference between /etc/shadow and /etc/default/passwd . As per my knowledge both the files are used for password aging and control parameters. (2 Replies)
Discussion started by: rogerben
2 Replies

5. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

6. UNIX for Advanced & Expert Users

Converting freebsd (5.2.1) master.passwd to Debian shadow

I'm trying to make this work, and it half works. Accounts with password hashes matching the old crypt(3) algorithm work just fine: JUpfW/w6jo6aw But accounts with longer password hashes preceded by $1$, such as the following, do not work: $1$iIcbppdP$HDyjJeVMGgJ.ovLsnjtTR.... (0 Replies)
Discussion started by: davidstvz
0 Replies

7. Solaris

tool to convert /etc/passwd and etc/shadow

i wonder if there is a tool to read the /etc/passwd or /etc/shadow files in order to reset user accounts to the same one. By moving (restore) all filessytem and data to another same Sun box, none of the users are able to logon to the new box which i didn't change nothing. But if i reset the user... (1 Reply)
Discussion started by: lamoul
1 Replies

8. UNIX for Dummies Questions & Answers

How to : Identify the the password is encrypted or not in /etc/shadow or /etc/passwd?

Thanks AVKlinux (11 Replies)
Discussion started by: avklinux
11 Replies

9. UNIX for Dummies Questions & Answers

is it really not possible for me to edit the etc/group & the etc/passwd files?

From what I have read it possible to create a new group by editing the etc/group and etc/passwd in UNIX two files but a non-experienced user may face many problems such as destroying the file by mistake ot that his changes to these file does not make any difference. However, there is this... (2 Replies)
Discussion started by: whatev3r
2 Replies

10. UNIX for Dummies Questions & Answers

nobody & noaccess entries in passwd file

Hi, I cud find entries for user's named nobody and noaccess in the passwd file in the Unix system in which I am working ... I have seen entries for these in other systems too .... What is the significance for nobody and noaccess ... ?? Anything special ?? Can anyone help ?? Thanks &... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies
Login or Register to Ask a Question