LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-18-2013, 07:51 PM   #1
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Rep: Reputation: 1
Question [BOLD]wheel group and sudoers[/BOLD]


i just installed fedora and i forgot to check the box to add to administrators group. i tried to add myself to the wheel group but it doesn't seem to stick. my sudoers file is correct where as the %wheel=(ALL) All is uncommented. i tried to add my user to this group a couple ways. here is what i tried as root:

usermod -aG wheel username
usermod -G wheel -a username
usermod username -a -G wheel
gpasswd wheel -a username (this even said adding username to wheel group when it executed)

**none of these gave me errors and the last one actually said it was doing it. i also was going to do it via gui but on the gui it says i am in the wheel group already. at the commandline however i type "groups" and wheel is not showing as me belonging.
anyone know why this is happening or how to rectify?
 
Old 06-19-2013, 03:26 AM   #2
slipstreamed
Member
 
Registered: Nov 2010
Posts: 57

Rep: Reputation: 24
Try
Code:
usermod -a -G wheel username
also are you getting any selinux notifications while running usermod?

you could also edit /etc/group and /etc/gshadow files as root and manually add <user> to the group wheel. Here is what my files look like
/etc/group
Code:
wheel:x:10:test, new
i've added <user> test via
Code:
usermod -a -G wheel test
and <user> new manually
/etc/gshadow
Code:
wheel:::test, new
both users after running
Code:
groups
list themselves as member of
Code:
wheel
group.
 
Old 06-20-2013, 10:07 AM   #3
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Original Poster
Rep: Reputation: 1
thanks for the reply but i had it done already. i shoulda marked this solved before. actually all those things i tried in my first posr worked i just didn't realize they don't take effect until reboot. linux almost never requires a reboot for changes but this is one of those rare cases. even just ending the terminal session didn't do it i actually had to rebot the computer.
 
Old 06-20-2013, 10:38 AM   #4
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Rep: Reputation: 61
You only need to log out and login again.
 
Old 06-20-2013, 02:38 PM   #5
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Original Poster
Rep: Reputation: 1
i did read that prior but i thought i did that. what happened actually was i have it set to require a log in after screensaver. i assumed that counted as logging back in but apparently not.
 
Old 06-20-2013, 03:22 PM   #6
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Rep: Reputation: 61
Screensaver just locks the screen. It doesn't log you out, so therefore it can't let you login.
 
Old 06-20-2013, 03:48 PM   #7
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Original Poster
Rep: Reputation: 1
yea i realize that now, but when i did it i guess i was thinking it logged you out after a period not just locked you out. just a brain fart on my part.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My blackberry bold 2 jaishunthan Linux - Software 1 02-12-2011 08:12 AM
bold the word elainelaw Linux - Newbie 2 07-22-2010 08:25 AM
fonts are bold shahin123 Linux - Newbie 6 05-13-2008 05:49 AM
How to bold words NiallC Programming 2 08-25-2007 12:32 PM
How do I xemacs bold? wmcase Linux - Software 2 05-26-2005 04:15 PM


All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration