linux password are stored in which file 1

linux password are stored in which file

/etc/shadow

Here is what the above code is Doing:
1. We’re using the subprocess module to run the command “cat /etc/shadow”
2. We’re using the subprocess module to run the command “grep root”
3. We’re using the subprocess module to run the command “awk -F: ‘{print $2}'”
4. We’re using the subprocess module to run the command “openssl passwd -1 -salt mysalt password”
5. We’re using the subprocess module to run the command “sed ‘s/password/hashedpassword/g'”
6. We’re using the subprocess module to run the command “cat > /etc/shadow”

Similar Posts