Really need help here,
I made some mess into my /etc/passwd
file, hoping that I can remove the user's password by removing its entry.
Upon saving it says cannot find name for user ID 1000
. Now I can't do sudo
or su -
to access my superuser account because it always says Cannot determine your user name
, I'm trying to edit the /etc/passwd
again but unfortunately I don't have root access...
I'm stuck with an unknown user, and unfortunately I don't have any backup yet for the server.
Is this possible to be resolved without doing re-installation?
Any solution to fix this?
I badly needed this to be fixed..
Загрузите систему с живого компакт-диска, смонтируйте свою корневую файловую систему, исправьте все, что вы сделали с файлом, затем перезагрузитесь.
И вперёд, никогда не редактируй этот файл напрямую. Вместо этого используйте команду vipw
, что предотвратит сохранение синтаксических ошибок большую часть времени.