wheel group

General support questions
Post Reply
intel233
Posts: 10
Joined: 2017/07/15 15:31:04

wheel group

Post by intel233 » 2017/07/19 19:59:39

I am new to linux and I added myself into the wheel group. I can;t seem to do anything (adduser). If I take myself out of the wheel group and just add myself to /etc/sudoers then I can use sudo to run what I want. My question is why isn't adding myself to the wheel group enough?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: wheel group

Post by hunter86_bg » 2017/07/19 20:01:15

Do you use the

Code: Select all

newgrp wheel
after adding yourself or you just log out and login ?

intel233
Posts: 10
Joined: 2017/07/15 15:31:04

Re: wheel group

Post by intel233 » 2017/07/19 20:07:46

hunter86_bg wrote:Do you use the

Code: Select all

newgrp wheel
after adding yourself or you just log out and login ?
Why am I making a newgroup? Wheel already exist I did gpasswd -a intel233 wheel (as root). Then I exit and try to run useradd and get permission denied,

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: wheel group

Post by lightman47 » 2017/07/19 21:34:05

I have found that, despite logout/login suggestions, I needed to reboot.
That said, the command thereafter would be sudo useradd {parameters} as you've no doubt figured out

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: wheel group

Post by TrevorH » 2017/07/19 23:50:06

First, newgrp doesn't do what you think it does. You can either run that or you can logout and back in again to pick up the new group. Without that, your existing session doesn't belong to the newly added group.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply