LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 12-12-2007, 09:56 AM   #1
maiden2
Member
 
Registered: Dec 2007
Location: Italy
Distribution: Ubuntu 8.10
Posts: 106

Rep: Reputation: 15
how to edit files owned by root?


I need to edit some system file but I can't save them after the modifications because "I'm not the owner" and the system tell me averytime that "I've not the correct permission to save the file".

I suppose to have to log myself as root user to be able to edit and save system files, but I don't know how to do it.

someone could help me? (I use ubuntu 7.10)
 
Old 12-12-2007, 10:01 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
In Ubuntu, you can edit roots files using sudo e.g.
Code:
$sudo nano somefile
Substitute nano with your favourite text editor.
 
Old 12-12-2007, 12:22 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
If I am using a Ubuntu system, I always enable the root account by entering "sudo passwd root". I still get annoyed when I do something that wants "root privileges" and it expects my regular user password.

Note to self: In free time, figure out how to totally reverse this flaw in Ubuntu. Mepis did it when they were Ubuntu-based, so how hard can it be??
<<end rant--returning soapbox to stowed postition.>>
 
Old 12-12-2007, 12:32 PM   #4
maiden2
Member
 
Registered: Dec 2007
Location: Italy
Distribution: Ubuntu 8.10
Posts: 106

Original Poster
Rep: Reputation: 15
many thanks to everybody!! thank you!

...now I can continue to spend my free time in triyng to activate my bcm4310 wifi network adapt...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing files owned by root SiW Programming 5 07-31-2007 01:36 PM
user access to files owned by root jonfa Linux - General 2 07-09-2007 11:58 AM
all users have access to root owned files sakatola Linux - Security 2 07-22-2005 12:45 AM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 01:26 AM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 02:38 AM


All times are GMT -5. The time now is 01:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration