Where are the passwords stored?

Marvell Kirkwood based
Post Reply
Aguirre
Posts: 44
Joined: Sat Mar 09, 2013 6:28 am

Where are the passwords stored?

Post by Aguirre » Sat Jul 22, 2017 8:00 pm

I mirrored my NSA310 to a new one with a larger drive. Set up all the shares and users. But I don't know how to transfer the user passwords to the new server.

Does anyone know where the NAS user account passwords are stored? (They are not in /etc/shadow.) On UNIX systems it is possible to copy the encrypted password to another system so the user can log in. You can't see the original password but can copy the encrypted string. Is there a similar method for the NAS logins?

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: Where are the passwords stored?

Post by Mijzelf » Sun Jul 23, 2017 11:16 am

On my Medion it's stored in /etc/zyxel/conf/startup-config.conf . On boot the file /etc/samba/smbpasswd is generated from this file, and all services use PAM to use samba authentication.

Only admin has a second password hash which is copied to /etc/shadow, for admin and for root. (The hashes for shadow and smbpasswd are not compatible)

Aguirre
Posts: 44
Joined: Sat Mar 09, 2013 6:28 am

Re: Where are the passwords stored?

Post by Aguirre » Mon Jul 24, 2017 10:10 pm

Thank you. That was exactly what I needed to know.

Jerry

Post Reply