Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-12-2007, 10:56 AM   #1
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, 11:01 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

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

Rep: Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735
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, 01:32 PM   #4
Registered: Dec 2007
Location: Italy
Distribution: Ubuntu 8.10
Posts: 106

Original Poster
Rep: Reputation: 15
many thanks to everybody!! thank you! I can continue to spend my free time in triyng to activate my bcm4310 wifi network adapt...


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
Editing files owned by root SiW Programming 5 07-31-2007 02:36 PM
user access to files owned by root jonfa Linux - General 2 07-09-2007 12:58 PM
all users have access to root owned files sakatola Linux - Security 2 07-22-2005 01:45 AM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 02:26 AM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 03:38 AM

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration