Passwords in /etc/shadow file


 
Thread Tools Search this Thread
Operating Systems Solaris Passwords in /etc/shadow file
# 1  
Old 01-17-2006
Computer Passwords in /etc/shadow file

I want to import my passwd/shadow files from Solaris 6 to Solaris 10. I found that the encryption method for passwords has changed. Is there a command or script to convert the Solaris 6 passwords to Solaris 10? I have searched the net and just can't seem to find the answer.

For Example:

The password "test123" in Solaris 2.6 shadow file:
wsr:8SsdZGI10.48o:13161::::::

The password "test123" in Solaris 10 shadow file:
wsr:rJ6LC282EwCDs:13161::::::

Thanks in advance for your help.
Smilie

Last edited by westsiderick; 01-18-2006 at 03:23 PM..
# 2  
Old 01-20-2006
I doubt that you would find a script or program to do this since that would require the program to know what the password actually is set to - and then that means that program would be able to crack passwords.

All you can do is set up all the accounts on the 10 server and set all passwords to some default (maybe the user's first 4 letters of First Name and then 4 random numbers) and let each user know the new password on the 10 server. Also set it that they have to change it when logging in the first time.

And I checked an account on servers that has the same password on Solaris 2.6, 8, and 9 - each is different in what is recorded in the /etc/shadow for the password for the exact same account.

Last edited by RTM; 01-20-2006 at 12:17 PM..
# 3  
Old 01-20-2006
The password in the /etc/shadow file is encrypted with a different key (salt) everytime. The salt used to encrypt the password is also stored in the shadow file. This will result in a different entry for each password -even if it the same password on the same server.
Why dont you take a nice secure root login on the server (which won't accidentally be logged off), take a backup of the current shadow file and bring in the shadow from 2.6. Then try to login to the server. If it works, there's your import.
# 4  
Old 01-20-2006
I just created an account on a Solaris 10 box. I copied the encrypted password string for a SunOS 2.6 box. That worked. Then I copied the encrypted password string for an HP-UX 11.0 box. That worked too. Solaris 10 uses the same password encryption scheme as virtually every other version of unix. Replacing crypt() would be a daunting task. It is hard to get something like that right.

See this post
# 5  
Old 01-24-2006
Computer solution

I finally found the problem. The following line in /etc/security/policy.conf was commented out.

CRYPT_DEFAULT=__unix__

Once i uncommented it out, everything worked great.

Thanks for everyone's help.
# 6  
Old 01-31-2006
I've tried something like that and it worked fine, converting my /etc/master.passwd from FreeBSD to Solaris 10's /etc/shadow, then copied to Linux and still worked, of course, all servers was configured to handle md5
# 7  
Old 01-31-2006
I'm not a crypto expert, but I have to say that I am not convinced that md5 hashes constitute a successful replacement to the standard unix password hash. Before md5, we had md2 and md4 both of which failed to live up to their promises. In this paper, Collisions for Hash Functions MD4, MD5, HAVAL-128 and RIPEMD demonstrate collisions for md5. It's especially jarring that they can find a collision for md4 by hand, no computer needed. And Bruce Snieder checks in with Opinion: Cryptanalysis of MD5 and SHA: Time for a new standard. On the other hand, it may be that stuff like md5 is unusually strong when hashing a very short string like a password. But I'm reluctant to use a new algorithm until it has proven itself for awhile.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

When did UNIX start using encrypted passwords, and not displaying passwords when you type them in?

I've been using various versions of UNIX and Linux since 1993, and I've never run across one that showed your password as you type it in when you log in, or one that stored passwords in plain text rather than encrypted. I'm writing a script for work for a security audit, and two of the... (5 Replies)
Discussion started by: Anne Neville
5 Replies

2. Cybersecurity

Cracking complex passwords (/etc/shadow)

I'm doing some labs regarding password cracking on Linux machines. I took the shadow file from one of my virtual machines and it looks like below: bruno:$1$mrVjnhtj$bg47WvwLXN4bZrUNCf1Lh.:14019:0:99999:7::: From my understanding the most important piece regarding password cracking on linux... (1 Reply)
Discussion started by: bcaseiro
1 Replies

3. UNIX for Dummies Questions & Answers

Shadow file help

As a part of linux hardening In shadow file all Application accounts which are not locked must contain only an asterisk “*” in the Passwd field. But how would i do it by using command? Is there any way other than modifying shadow file to accomplish this task? (3 Replies)
Discussion started by: pinga123
3 Replies

4. UNIX for Dummies Questions & Answers

Shadow File

I see conflicting definitions for the shadow file. For Solaris, what are the fields please? Thanks. (3 Replies)
Discussion started by: DavidS
3 Replies

5. UNIX for Advanced & Expert Users

/etc/shadow file....

Does anyone know what "!!" represents in the password field of the /etc/shadow file? :confused: (6 Replies)
Discussion started by: avcert1998
6 Replies

6. Solaris

*LK* in /etc/shadow file

my etc/shadow file showing *LK* for a particular user.. can u tell me under which circumstances a user is locked (5 Replies)
Discussion started by: vikashtulsiyan
5 Replies

7. Programming

Shadow Passwords

I'm writing a 'C' program on various systems (HP-UX, Solaris, AIX, NCR) which needs to interact with a user's password. Some of my systems are using the shadow password and some are not. It is possible for some of my systems to have /etc/shadow, even though the box is not using the file (I know,... (4 Replies)
Discussion started by: chrisc@nwark.ne
4 Replies

8. UNIX for Advanced & Expert Users

shadow file

what does 'x' in the encrypted password field in /etc/shaodw file represent? (3 Replies)
Discussion started by: jbashir
3 Replies

9. UNIX for Dummies Questions & Answers

shadow file

Sirs, What is a shadow file,How it be usefull.For my project i have to keep the password in shawdow file also i am doing in php how can i do it. Thanks in advance, ArunKumar (3 Replies)
Discussion started by: arunkumar_mca
3 Replies
Login or Register to Ask a Question