LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-17-2008, 01:53 PM   #1
Chriscrof
Member
 
Registered: Jul 2008
Location: France and UK
Distribution: 10.10
Posts: 86

Rep: Reputation: 15
Editing 'google.xml'


Hi,

I have been trying Fedora using a live CD - or, rather, a live USB memory stick. I am doing it that way so as to get to know it and make changes before possibly installing it on my hard disc

I have been trying to edit a file called 'google.xml' which is a search plugin that is used by Firefox. However, when I try and save my editing I get a message saying that I don't have permissions.

I tried opening a terminal and typing 'sudo'gedit' but immediately got a message saying 'fedora@localhost' followed by 'fedora is not in the sudoers file'. Then I tried unsuccessfully to create an account with me as the Administrator but couldn't see how to do that

Would some kind person explain how to create an account with me as the administrator so that I can use 'sudo' or how to edit the .xml file and save the changes. I understood that the reason for using a USB memory stick to boot into Fedora was so that one could make such changes as the default language and keyboard as well as other changes.

Many thanks in advance

Chris
 
Old 09-18-2008, 07:47 AM   #2
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
Can't you use the su command then edit the file with nano?
 
Old 09-18-2008, 07:55 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
First, add yourself to the "wheel" group. This is the group that is allowed to use sudo.
Then run "visudo" and uncomment the line that allows members of the wheel group to run
commands as root. The line is near the bottom of the file. Fedora is set up so that you
enter your own password when using sudo.

Also check the permissions of the directory that holds this file, and check how the partition is mounted.
ls -ld <directory>
and
mount

Make sure that the partition isn't mounted read-only. Who owns the file. You didn't give the full pathname to the file.

A live distro may have you operate as root. If so, then install first and make your changes for a normal user. You don't want to routinely run as root after installing.
 
Old 09-19-2008, 02:27 AM   #4
Chriscrof
Member
 
Registered: Jul 2008
Location: France and UK
Distribution: 10.10
Posts: 86

Original Poster
Rep: Reputation: 15
Hi jschiwal, thank you for your help. I have done what you said and all is well now
 
  


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
LXer: Create XML with Google Web Toolkit LXer Syndicated Linux News 0 04-14-2007 08:01 PM
LXer: XML Voice Editing Toolkit for Eclipse Gets Updated LXer Syndicated Linux News 0 09-15-2006 12:54 AM
Suggest A Great XHTML/XML Editing Program RAdams Linux - Desktop 2 08-18-2006 10:37 AM
configure: error: could not find DocBook XML DTD V4.1.2 in XML catalog Fadoksi Linux - Software 1 07-16-2006 06:41 AM
PHP5 SimpleXML (problem editing XML) carlosruiz Programming 1 06-23-2005 02:16 AM


All times are GMT -5. The time now is 05:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration