On Tue, 17 Mar 2020 13:54:59 -0700 Samuel Sieb <sam...@sieb.net> wrote:

> On 3/17/20 1:02 PM, Ranjan Maitra wrote:
> > On Tue, 17 Mar 2020 12:37:07 -0700 Samuel Sieb <sam...@sieb.net> wrote:
> >> On 3/17/20 11:42 AM, Ranjan Maitra wrote:
> >>> I am on F31 and have always used sudo. This morning, after a while, I 
> >>> finally rebooted and am on the 5.5.8-200.fc31.x86_64 kernel. However, I 
> >>> appear to have lost my sudo access.
> >>>
> >>> I get: that my username "is not in the sudoers file.  This incident will 
> >>> be reported."
> >>>
> >>> Not sure how this happened. How do I get back into sudoers? I am not even 
> >>> sure I, (in fact I think that I do not), have a root account.
> >>
> >> It's unlikely that you were ever in the sudoers file unless you added it
> >> yourself.  Normally the user is in the wheel group to make them admin
> >> and allowed to use sudo.  What does the "id" command show for you?
> >
> > I did not manually add the user but I have had sudo privileges because I 
> > checked the box with regard to administrator privileges while installing 
> > long long ago.
> >
> > I had no idea that id was a command (thanks!) but here is what it says:
> >
> > uid=1000(username) gid=1000(username) groups=1000(username),7(lp) 
> > context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
>
> Somehow you got dropped from the wheel group.  Did you uncheck your
> administrator access in the user control panel?  In any case, if you
> don't have another admin user, you will need to use a live or rescue
> boot to add yourself back in to the wheel group.

No, I did not uncheck anything (because nothing every came up for me to 
uncheck). I can get into the rescue. What do I do after that?

> Btw, you do have a root account, but it probably doesn't have a
> password.  "sudo -i" will make you root.

I see, but it requires the wheel access that you were mentioning, I guess.

Thanks again,
Ranjan




_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to