Let’s say we have to reset the Root password of a Linux
machine to “XYZabc123”. We can use the below command set to do it. This can be executed on remote machines if we have a
centralized administration server.
# echo ‘XYZabc123’ >
/opt/pass; passwd --stdin root < /opt/pass; rm -f /opt/pass
No comments:
Post a Comment