This server was hacked, the hacker gained full access, including changing the root password. I have already identified the breach and fixed it, however it may still have access to a user with root privileges.
I want to run a script to change the password for all users, including system users.
The question is, can changing the password of system users generate any problems for the server?
The script:
cut -d: -f1 /etc/passwd > allusers
while IFS= read -r user; do
echo "nwepass" | passwd --stdin $user
done < allusers
Thank you!