I need to fix Ubuntu Accounts somehow but I don't really see how it could be done.
The problem is:
/etc/hosts where changed.
127.0.0.1 localhost 127.0.1.1 serg-Protege
127.0.0.1 localhost 127.0.1.1 John-The-Ripper
I was trying to simply change these files but can not do this because permission denied. When I'm trying to log in as root, I got this message:
John@John-The-Ripper:~$ sudo -s [sudo] password for John: John is not in the sudoers file. This incident will be reported
The file sudoers is empty:
John@John-The-Ripper:~$ vi /etc/sudoers
When I type users in cp:
John@John-The-Ripper:~$ users John John
When I type id, I got this:
John@John-The-Ripper:~$ id uid=1000(John) gid=1000(serg) groups=1000(serg)
This doesn't work eather:
John@John-The-Ripper:~$ usermod -l John serg usermod: user 'serg' does not exist John@John-The-Ripper:~$ adduser serg adduser: Only root may add a user or group to the system. ater.
Then I tried to go to the GRUB menu and log in as root from there. I did this, but however When I tried to create user serg, It gave me an error that group already exists. When I tried to change /etc/passwd it said 'permission denied'
And this doesn't do the trick: John@John-The-Ripper:~$ visudo
visudo: /etc/sudoers: Permission denied visudo: /etc/sudoers: Permission denied
Also The last thing I tried to do is to create a bootable USB and reinstall ubuntu, however I can not open USB-Creator because it asked me a root password. But it doesn't work.
HELP ME PLEASE =)))