Come chiudersi fuori con sudo
Scenario: ubuntu appena installata con un unico utente nella lista dei sudoers.
Sbadatamente modifico /ets/hostname senza cambiare anche la relativa corrispondenza IP-host in /etc/hosts.
Con il risultato di essermi chiuso fuori dall’uso di sudo che diventa inservibile perche’ quando chiama gethostname() ottiene un nome host differente e quindi tranquillamente se ne esce con un errore.
Unica soluzione riavviare in single user mode.
Oggi sono proprio sveglio…
Random Posts
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments
No comments yet.
Leave a comment