My user has been edited somehow so it does not appear on login or in my settings. However, I can still login if I use not listed and type it in, and if I try and add a user with the same name this is what happens:
jacob@jacob-desktop ~> sudo adduser jacob
adduser: The user `jacob' already exists.
This began happening after I changed my default shell to fish from bash after a clean install.
I have made myself a root user editing visudo, but i get the error visudo: /etc/sudoers: Permission denied
when I don't use sudo although I am a confirmed root user as you can see below.
jacob@jacob-desktop ~ [1]> id jacob
uid=1000(jacob) gid=1000(jacob) groups=1000(jacob),4(adm),24(cdrom),27(sudo),29(audio),30(dip),46(plugdev),120(lpadmin),131(lxd),132(sambashare)
jacob@jacob-desktop ~> sudo whoami
[sudo] password for jacob:
root
I have also tried to edit GDM with no success. I am not sure if giving root and sudo access is the right way to go as it seems I need to have it appear on login and in settings before I can do so.
Any help would be appreciated, I'm very stumped at this point.
whoami
andsudo whoami
should give different output, try it and see. If you want to usevisudo
you need to prependsudo
, thussudo visudo
. You (jacob) are member of the sudo-group already, so there is no reason to edit/etc/sudoers
./etc/sudoers
without root privileges. That file is root owned with chmod 0440.jacob@jacob-desktop ~> whoami jacob
jacob@jacob-desktop ~> sudo whoami root
.