4.1.x passwd -> 2.x passwd & shadow

4.1.x passwd -> 2.x passwd & shadow

Post by Dave Robbi » Thu, 13 Jun 1996 04:00:00



Is there a shell script available to convert a 4.1.x passwd file to the
passwd file and shadow file in Solaris 2.x?  If someone could post it
or email it to me, I would be especially grateful.  Thanks for any
help.

Dave Robbins

P.S. I can write this myself if someone could tell me what the 3rd
column is all about in the shadow file.

login-name:encrypted-password:???::::::

What is the 4-digit number?

 
 
 

4.1.x passwd -> 2.x passwd & shadow

Post by Jim Char » Thu, 13 Jun 1996 04:00:00


Quote:

> P.S. I can write this myself if someone could tell me what the 3rd
> column is all about in the shadow file.

> login-name:encrypted-password:???::::::

> What is the 4-digit number?

 Each entry in the shadow file has the form:

          username:password:lastchg:min:max:warn:inactive:expire:flag

     The fields are defined as follows:

     username    The user's login name (UID).

     password    A 13-character encrypted password for the  user,
                 a  lock string to indicate that the login is not
                 accessible, or no string, which shows that there
                 is no password for the login.

     lastchg     The number of days between January 1, 1970,  and
                 the date that the password was last modified.

     min         The minimum  number  of  days  required  between
                 password changes.

     max         The maximum  number  of  days  the  password  is
                 valid.

     warn        The number of days before password expires  that
                 the user is warned.

     inactive    The number of days  of  inactivity  allowed  for
                 that user.

     expire      An absolute date specifying when the  login  may
                 no longer be used.

     flag        Reserved for future use, set to zero.  Currently
                 not used.

--
 ---------------------------------------------------------------------
 Jim CHARD                                                              

 Europe Online, Luxembourg       Voice     : +(352) 401016458
 http://www.europeonline.com     Fax       : +(352) 40141208
 ---------------------------------------------------------------------

 
 
 

4.1.x passwd -> 2.x passwd & shadow

Post by Glenn Weinbe » Tue, 18 Jun 1996 04:00:00



Quote:>Is there a shell script available to convert a 4.1.x passwd file to the
>passwd file and shadow file in Solaris 2.x?

man pwconv(1M).

        Regards,

        Glenn
---

Eng. Mgr., Solaris Migration Team    http://www.sun.com/smcc/solaris-migration/
Opinions expressed above should not be construed as representing any position,
official or unofficial, of SMCC or Sun Microsystems, Inc.

 
 
 

4.1.x passwd -> 2.x passwd & shadow

Post by Sahir Siddiq » Tue, 18 Jun 1996 04:00:00



   >Is there a shell script available to convert a 4.1.x passwd file to the
   >passwd file and shadow file in Solaris 2.x?

   man pwconv(1M).

           Regards,

           Glenn
-------
'pwconv' actually operates on the /etc/passwd file - is there a way
give it a filename to operate on?
-s
--
Sahir N. Siddiqui         Res: (201) 217-0952
PO Box 5176, Hoboken NJ 07030                       ))))
                                                   oo-)