Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th November 2008, 01:03 AM
PCessna Offline
Registered User
 
Join Date: Nov 2008
Posts: 26
Add user to sudoers file (fedora 10)

I cannot login as root to use an old tutorial, I am baffled how to do so.

-PCessna
Reply With Quote
  #2  
Old 27th November 2008, 01:18 AM
uncholowapo's Avatar
uncholowapo Offline
Registered User
 
Join Date: Apr 2008
Location: /home/couch/PS3
Age: 21
Posts: 216
type:
Code:
su -
in the terminal.
Reply With Quote
  #3  
Old 27th November 2008, 01:26 AM
PCessna Offline
Registered User
 
Join Date: Nov 2008
Posts: 26
Quote:
Originally Posted by uncholowapo View Post
type:
Code:
su -
in the terminal.
What about running a "run" file as root :|
Reply With Quote
  #4  
Old 27th November 2008, 03:04 AM
bubazoo Offline
Registered User
 
Join Date: Jul 2004
Posts: 92
I can't login as root in the gdm in FC10.

I used to be able to edit the custom.conf file and add under "security"

AllowRoot=True

but this doesn't work anymore in FC10, anyone have an idea as to why on this one?
it says something about "authentication failed" I know its the correct password
because I used a proper name on purpose so I would remember the password. I figured
if I used a bunch of random numbers or special characters like it says yer supposed to, I'd
never remember the password, or I'd type it in wrong every time lol

but I know thats not it, because I can su ~ in as root from a terminal without a problem (shrugs)
Reply With Quote
  #5  
Old 31st January 2009, 10:16 AM
amisset Offline
Registered User
 
Join Date: Nov 2008
Posts: 1
You have to add yourself to the "wheel"-group. This group can use sudo to work with root commands.


1. On startup press "a" to give in a command on the boot-command-line.

2. type "linux 1" and press enter. You have to know your root password given at install. Now the system boots in runlevel 1, only root is in the sytem.

3. type "visudo" and enter. Now vi opens /etc/sudoers. Search for the line:

# %wheel ALL=(ALL) ALL
You can search for a string by typing ":/wheel"


4. delete the # at the start of the line, this uncomments this line and the wheel group is now in use.

5. press esc, then ":" , this shifts vi in command mode, now type "wq!" and press enter, the changes are written. Wq! means: write, quit and != ask no questions/no comments.

6. Now add yourself to the wheel-group: type "usermod -aG wheel your-username" and enter.


Done, reboot the system: type "init 6" and enter.

Now, if you want to perform a root-command ,type "sudo COMMAND" and give your own password. Where COMMAND is the command you want to execute.
If you want to act as root type "sudo su" and give your password, now you are in the system as root ! Be carefull what you do !! Only sudo and command is much safer. If you want to go back to your user, type "exit".

Last edited by amisset; 31st January 2009 at 10:39 AM.
Reply With Quote
  #6  
Old 31st January 2009, 10:54 AM
Demz
Guest
 
Posts: n/a
have a look at Dangermouses Autoten he has a howto in it on how to setup sudoers ..click on the link in my sig
Reply With Quote
Reply

Tags
add, fedora, file, sudoers, 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
Adding a user to sudoers file ajamison Using Fedora 34 8th May 2011 12:05 AM
How to add my user in sudoers ? goxi Using Fedora 11 21st May 2009 01:04 PM
Sudoers File? Tutious Using Fedora 1 24th April 2008 04:00 AM
not in the sudoers file frankje Using Fedora 4 19th April 2007 01:37 AM
Help with sudoers file joe.pelayo Using Fedora 3 26th March 2007 12:14 AM


Current GMT-time: 02:33 (Friday, 24-05-2013)

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