LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2010, 10:53 PM   #1
ciao303
Member
 
Registered: Jul 2010
Posts: 69

Rep: Reputation: 15
sudoer list: Fedora 13


ok how do I include my username in the sudoers list?
 
Old 08-09-2010, 11:03 PM   #2
hilyard
Member
 
Registered: Jan 2010
Location: Inland PNW
Distribution: Lite | siduction
Posts: 291

Rep: Reputation: 66
Gotta use visudo as root.

http://www.linuxquestions.org/questi...visudo-597400/
 
Old 08-09-2010, 11:06 PM   #3
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
su
root password

visudo

under #User Priveledge Specification
you should see:
root ALL=(ALL) ALL

add:

username ALL=(ALL) ALL

and save
 
Old 08-11-2010, 02:56 AM   #4
ciao303
Member
 
Registered: Jul 2010
Posts: 69

Original Poster
Rep: Reputation: 15
gives me this scenario:


carloslopez@CarlosLopez:~$ su
Password:
su: Authentication failure
carloslopez@CarlosLopez:~$ su
Password:
su: Authentication failure


I tried twice...how do I get past this authentication hurdle?
 
Old 08-11-2010, 03:06 AM   #5
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

Code:
$ su
The above command is switch user which when entered with no username will default you to switching to root. Thus if you enter the above and enter the root password you will be switched to root.

This does not relate to sudoers. Adding your username to /etc/sudoers will allow you to run super user commands via the sudo command.

Thus for example when logged as an ordinary user; you can use sudo to edit the /etc/fstab file which belongs to root.

Say for example you're logged in as john you can thereafter do the following:

Code:
john@mycomputer$ sudo vi /etc/fstab
[sudo] password for john:
You enter your password for the john user, and you can now edit the file with super user priveleges; provided that john is in the sudoers file.
 
  


Reply



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
Sudoer Help ........ jitendriya.dash Linux - General 3 06-05-2009 05:02 AM
Add user to sudoer list but cannot use root commands vitalstrike82 Slackware 3 12-31-2008 07:27 AM
sudoer spidna Slackware 2 10-17-2006 02:51 AM
Sudoer??? SBN Linux - Software 1 10-03-2006 11:15 PM
/etc/sudoer mikz Linux - General 1 02-25-2005 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:35 PM.

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
Open Source Consulting | Domain Registration