Fedora Linux Support Community & Resources Center
  #16  
Old 3rd June 2012, 06:22 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,527
linuxchrome
Re: Enable sudo for primary user

Going back to your answer to my post.

You tried doing usermod -G wheel -a martin, logging out and logging back in?

Pretty much everything else is overcomplicating it.

Please try doing your su to root then


grep wheel /etc/sudoers

and post the result.

If you get back the line I mentioned about %wheel ALL=(ALL) ALL

Then please type


groups


If you are in the group wheel, all is good. If you aren't then I suspect you mistyped the command I gave you.

There are various possibilities, but I suspect that the results of those two commands will help us clear things up.
Reply With Quote
  #17  
Old 12th June 2012, 07:15 PM
Yora0 Offline
Registered User
 
Join Date: Jun 2012
Location: Germany
Posts: 148
linuxfirefox
Re: Enable sudo for primary user

It appears I just managed something stupid. I locked my own account of my home folder.

Changing ownership back from root to the account was solved quite easily, but I want to understand how that happened.

Trying to repair something else, I followed the instruction of some guide on some page, and I used the chown -R command at some point, which I later learned has something to do with user-rights or something like that.

What exactly does chown -R do?


Also it seems I can no longer mount drives as that user.

Last edited by Yora0; 12th June 2012 at 07:21 PM.
Reply With Quote
  #18  
Old 12th June 2012, 07:22 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,527
linuxfirefox
Re: Enable sudo for primary user

Look at the man page for chown, I think it's pretty clear, even for newcomers.

In case it isn't, the very short answer is is that it CHanges OWNership (hence the chown).

The -R stands for Recursive. So, if I have a directory mydir and a file in it, myfile and do chown me mydir, the ownership on the file may remain what it was before. If I do chown -R me mydir then the owner of the directory and every file in it will be user me.
Reply With Quote
  #19  
Old 12th June 2012, 07:29 PM
Yora0 Offline
Registered User
 
Join Date: Jun 2012
Location: Germany
Posts: 148
linuxfirefox
Re: Enable sudo for primary user

Okay, so apparently I did that to something in /home/me and home/me became owned by root. Okay, that's easy.

Now I noticed that not only can I not manually mount drives, I don't even get them listed in the system informations. Best thing would probably be to set the permission rights for the account to the standard settings for a new account, so everything should be nice and clean again (only repeating the step to enable sudo needed ^^). Could that be done?

Wait, one step back. root is also effected, must be a different reason.

Last edited by Yora0; 12th June 2012 at 07:33 PM.
Reply With Quote
Reply

Tags
enable, primary, sudo, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid_LDAP_Groups and AD User Primary Group TheNom Servers & Networking 0 28th February 2012 01:53 PM
FC 8 and sudo user bhanu.fed Using Fedora 11 28th March 2008 12:53 PM
gdm, no room? no access to primary user desktop nobodie Using Fedora 1 22nd April 2007 04:49 PM
How to enable sudo? Shadow Skill Using Fedora 8 24th September 2004 01:44 PM


Current GMT-time: 14:33 (Saturday, 25-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Santa Cruz de la Sierra Photos - Caete Instagram Photos - Guben