On Sat, Jun 22, 2024 at 10:15:33AM +0000, dalton.c.russell wrote:
> hi all,
> not sure if this is a bug or not so asking here.
> 
> I’ve add my standard user account to the wheel group with usermod and
> tried to su to root but I get an error along the lines of
> 
> “Sorry you’re not in the wheel group”

IIRC it doesn't take effect in the same session,  you need to log off
and then back on.
 
> I double checked with id and it does show that my user is in the wheel
> group but if i look at /etc/groups it isn’t listed next to wheel.

> 
> is usermod supposed to modify /etc/groups?

id will only show changes after logging off and back on (see above), but
changes to /etc/group happen immediately, after using usermod (see
Crystal Kolipe's reply).  I have no idea why you seem to have this the
other way round (wheel on id but not on /etc/groups).

> Dalton

-- 
 

Reply via email to