LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-27-2008, 06:04 PM   #16
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99

The line will look like:
Code:
root	ALL=(ALL) 	ALL
Forrest
 
Old 03-27-2008, 06:24 PM   #17
rexrugby
LQ Newbie
 
Registered: Mar 2008
Posts: 25

Original Poster
Rep: Reputation: 15
there is no line like that. or even close that i can see. all lines have ## in front of them like comments. how many lines should I see of actual commands?
 
Old 03-27-2008, 06:37 PM   #18
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
My sudoers file has 95 lines (it is the default one with my user added). If you don't see the line above, just add one for your user account:

Code:
youruser	ALL=(ALL) 	ALL
HTH

Forrest
 
Old 03-27-2008, 07:16 PM   #19
rexrugby
LQ Newbie
 
Registered: Mar 2008
Posts: 25

Original Poster
Rep: Reputation: 15
gedit

i almost have it. i can add the line you said but can't for the life of me see how to save it.
 
Old 03-28-2008, 08:45 AM   #20
rexrugby
LQ Newbie
 
Registered: Mar 2008
Posts: 25

Original Poster
Rep: Reputation: 15
saving soder file

anyone that can help I would greatly appriciate it.
 
Old 03-28-2008, 08:53 AM   #21
rexrugby
LQ Newbie
 
Registered: Mar 2008
Posts: 25

Original Poster
Rep: Reputation: 15
sudoer

sorry about the spelling
 
Old 03-28-2008, 09:10 AM   #22
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Under "File" in the drop down menus, there should be a "Save" option. Did it open gedit to edit with, or is it using vi?

Forrest
 
Old 03-28-2008, 09:24 AM   #23
rexrugby
LQ Newbie
 
Registered: Mar 2008
Posts: 25

Original Poster
Rep: Reputation: 15
saving sudoer file

I opened it the way you suggested EDITOR= gedit the the rest.under file there is just some stuff about profiles but nothing about saving. what I do wrong?
 
Old 03-28-2008, 11:01 AM   #24
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
I'm not sure what you are doing wrong. The editor you are describing doesn't sound anything like gedit. Lets try walking you through what you need to do in vi.

Log in and su to root as you did before. Then run:
Code:
EDITOR=vi
/usr/bin/visudo
After you get into vi you should see the contents of your sudoers file. Type the following exactly:
Code:
/^root
That "should" bring you to the root entry (I know you said you didn't have one, but this will make sure).

If your cursor is now on the root entry line type the following (replace YOURUSERNAME with your user name):
Code:
yypcwYOURUSERNAME[Esc]:wq[Enter]
If your cursor is NOT on the root entry line type the following (yes, replace YOURUSERNAME with your user name):
Code:
GoYOURUSERNAME[Tab]ALL=(ALL)[Tab]ALL[Esc]:wq[Enter]
HTH

Forrest
 
Old 03-28-2008, 12:16 PM   #25
rexrugby
LQ Newbie
 
Registered: Mar 2008
Posts: 25

Original Poster
Rep: Reputation: 15
saving

ok. I have found the "root" line (didn't realize you have to use the down arrows to move through the file). But even in this editor I get the same options when I choose "file". save not being one of them.how do I save the changes?
 
Old 03-28-2008, 12:32 PM   #26
rexrugby
LQ Newbie
 
Registered: Mar 2008
Posts: 25

Original Poster
Rep: Reputation: 15
saving

I also get a warning when I open the file to edit that the last sesion crashed and there may be someone else working on it or there maybe a duplicate file. probably from my abrubt exiting without saving. posibly unrelated I noticed a failure when I boot fedora" mounting fuse control file system failed" . don't know how important that is yet. first would like to straighten out monitor before I have a seizure.
 
Old 03-28-2008, 12:39 PM   #27
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
The ":wq[Enter]" in the above should write and quit the file.

The above explaned:

"/^root[Enter]" (I know I forgot the "[Enter]" in the above, but I take it you figured that out) searches the file for the word root appearing at the beginning (signified by the "^") of a line.

"yy" yanks one line into the buffer.
"p" puts the item in the buffer below the current line.
"cw" changes the line from the current cursor position to the end of the current word.
"YOURUSERNAME" is what it changes it to and "[Esc]" ends the change input.
":wq[Enter]" writes the file out and quits (I use wq out of habit, you can also do the same thing with ":x")

HTH

Forrest
 
Old 03-28-2008, 01:22 PM   #28
rexrugby
LQ Newbie
 
Registered: Mar 2008
Posts: 25

Original Poster
Rep: Reputation: 15
success

forrestt, just wanted to let you know it worked and solved the monitor problem. I really appriciate your help. still have two failures on start up , but I'll sort that out in time. I have much to learn. Thanks!!
 
Old 03-28-2008, 03:36 PM   #29
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Glad I could help. Post the other problems, and I'm sure you'll get them resolved.

Forrest
 
  


Reply

Tags
hardware



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
Monitor is flickering alcuino Linux - Hardware 2 09-24-2007 09:52 PM
Flickering monitor lend_a_hand Red Hat 2 05-12-2004 07:33 PM
Another flickering monitor nef Linux - Hardware 0 02-01-2003 03:27 PM
Flickering monitor dark_light Linux - Newbie 1 04-04-2002 08:24 PM
monitor flickering jibly Linux - Newbie 2 05-25-2001 06:09 AM

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

All times are GMT -5. The time now is 01:35 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
Open Source Consulting | Domain Registration