On Sun, 27 Dec 2020 at 05:32, Angelo Moreschini <mrangelo.fed...@gmail.com> wrote:
> Hi > > some days before, I had a problem about using the *"beep" function..* > ... working around, to solve my problem, I got the suggestion to register > myself in the "audio group" .. > I made it using these commands: > > *sudo adduser <my_name> audio* > This should have given a usage error: Usage: adduser [options] LOGIN adduser -D adduser -D [options] and also : > *sudo usernod -G audio <my_name> * > I assume this was "sudo user*m*od -G audio <my_name>". This will replace the list of supplementary groups with just "audio", which will remove sudo privileges. You need "--append" (or "-a") to append "audio" to the supplementary groups. What did you use for <my_name>? You seem to have two user names: "angelo_user" and "angelo_dev". > > > Actually (after this) I no longer have (I lose the) sudo privileges (I > think, in consequence of these actions). > As well my name still appears inside the /etc/sudoers/ file.., > > ## Allow root to run any commands anywhere > > root ALL=(ALL) ALL > > *angelo_user ALL=(ALL) ALL* > > (but i am not anymore in the wheel group) > If you no longer have a login with sudo privileges you will need to boot another system (e.g., a live distro from a USB key) to > > When i try to use the sudo privileges, I get the message : > *<"angelo_dev is not in the sudoers file. This incident will be > reported.">* > Check the list of groups for "id", "id angelo_dev" and "id anglo_user". > > In conclusion : > > - I am still registered in the /etc/sudoers file > - I am not anymore registered in the wheel group. > > I think it could be enough to register me in the "wheel" group again, in > order to still get the sudo privileges, but I am not completely sure about > this : > *....because to be registered in /etc/sudoers is not enough ??...* > (how it works the management of sudo privileges ? ) > You should not need to be in the wheel group if your username is in "/etc/sudoers". > > I would like sono help > > tank you > regards > > Angelo > _______________________________________________ > 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 > -- George N. White III
_______________________________________________ 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