friendica (DFRN) - Link to source

Help converting SunOS /etc/security/passwd.adjunct format to Linux /etc/shdow format


I am in the process of trying to retire my last SunOS 4.1.4 box. It has been the NIS master for years because Linux can understand it's triple-DES (not very secure) password encryption but SunOS 4.1.4 can not understand the more advanced encryption provided by Linux.

So I am faced with trying to convert the old passwd.adjunct format into
linux format, if I just put the entries in as is, pwck bitches about it being an invalid line, wants to delete, then bitches no line exists and adds a new line in with no password. This obviously is no good. I know that Linux knows how to use a triple DES entry because it did so fine as a NIS slave with a SunOS NIS master.

Any suggestions?

in reply to Nanook

Never mind, problem solved. For anyone else ever running into this issue, converting from SunOS to Linux, edit /etc/passwd.yp and change all the entires that have user:##user:, to user:x:. Edit out all the system entries at the beginning of the file. Then exit /etc/security/passwd.adjunct.yp. Remove the same system entries and add two :: at the end of each line so the number of fields is what Linux expects. Now cat /etc/passwd.yp >> /etc/passwd on the linux box, cat /etc/security/passwd.adjunct.yp >> /etc/shadow, run pwck -s and then pwck -r to see any errors, such as missing directories, fix all errors, then make your machine a NIS master with ypinit -m. That's all folks!