How to get the password encrypted string?

uranus12

New Member
Jun 22, 2021
20
0
1
41
Hello!
How to get the password encrypted string of the login user of the pve node?Thanks!
 
mhmm ? what exactly do you mean? do you mean the salted+hashed password that is in /etc/shadow for system users ?
 
the hashed user password of system users are in /etc/shadow, for the pve realm it is in /etc/pve/priv/shadow.cfg
 
the hashed user password of system users are in /etc/shadow, for the pve realm it is in /etc/pve/priv/shadow.cfg
Hi,I see the passwd is

Code:
it:$5$TXIeFtXC$EixCcgKf4hqTPtl3tG8v8cXDQAgypIJnwJHBzcULYk1:

Are all the passwords of this user in the colon?
 
what do you mean? the file format is explained in the shadow(5) manpage, check it out via 'man 5 shadow'
I want to get the password in the following format, how do I do it? Thank you
Code:
map[password:[jKR+KBWMs7JjS2jf+9vC6g==] username:[cmdb@pve]]