Hello:

PJN wrote,
> If I'm not mistaken, the shadow passwords used in linux are hashed and
> have a random 'salt'

Correct.

> First of all, how random is this salt?

As random as /dev/random can get.

> I presume it changes if the operating system is reinstalled.

Thats a wrong assumption. It changes every time you call /dev/random.
 
> If it does, here is my next question: I am going to be formatting and
> rebuilding an old server that has around 200 users configured to use
> it. Is it enough to back up /etc/passwd, /etc/shadow and /etc/groups
> or do I have to do something more? 

For just restoring authentication, you will just need the following
files:

 - /etc/passwd
 - /etc/shadow
 - /etc/group
 - /etc/gshadow

> Will a different 'salt' in effect after the reinstallation cause any
> problems to the existing passwords?

The salt will be the same since you are restoring your old files.

-- Shanu

-- 
Be valiant, but not too venturous.
Let thy attire be comely, but not costly.
                -- John Lyly

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to