0

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.

My Users tab in settings.

8
  • whoami and sudo whoami should give different output, try it and see. If you want to use visudo you need to prepend sudo, thus sudo visudo. You (jacob) are member of the sudo-group already, so there is no reason to edit /etc/sudoers.
    – mook765
    Jun 13, 2020 at 18:48
  • You are not supposed to be able to read or edit /etc/sudoers without root privileges. That file is root owned with chmod 0440. Jun 13, 2020 at 18:51
  • @mook765 jacob@jacob-desktop ~> whoami jacob jacob@jacob-desktop ~> sudo whoami root .
    – jakeant2
    Jun 13, 2020 at 19:01
  • @GunnarHjalmarsson ok, so do you think that file would have anything to do with getting my user back into the login screen and settings?
    – jakeant2
    Jun 13, 2020 at 19:04
  • @mook765 Thank you for the input, and would you have any idea why this user isn't showing up? Or where I should look to find the cause?
    – jakeant2
    Jun 13, 2020 at 19:05

1 Answer 1

0

One thing comes to mind: GDM is patched in Ubuntu on Xorg to be started with /bin/bash instead of upstream's /bin/sh. Possibly fish isn't compatible with that configuration.

2
  • Any way I could go about editing this? I did edit bin files so it is definitely possible.
    – jakeant2
    Jun 13, 2020 at 20:24
  • @jakeant2: Well, it's just a vague theory. But it's the first line in /etc/gdm3/Xsession I'm thinking of. Jun 13, 2020 at 20:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .