I want to use sudo

I want to connect sequeler with postgresql, and for that i need to run it in my principal account, i follow the instructions of https://fedoramagazine.org/howto-use-sudo/ but my user isn’t in the wheel group

[ortega@localhost Downloads]$ id
uid=1000(ortega) gid=1000(ortega) groups=1000(ortega) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[ortega@localhost Downloads]$ su -
Password:
[root@localhost ~]usermod -a -G wheel ortega
[root@localhost ~]exit
logout
[ortega@localhost Downloads]$ id
uid=1000(ortega) gid=1000(ortega) groups=1000(ortega) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

What i can do for?

2 Likes

To apply the changes, you need to terminate the session completely.
You can use loginctl to terminate/kill session/user.
In some cases logout is not enough, so reboot if necessary.

5 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.