Tutorials/EditFileAsAdministrator
From LinutopWiki
Some files cannot be modified without administrator rights, to modify them you can use one of the following methods.
We want to edit /path/to/myfile.
[edit]
Using the user interface
Press ALT + F2, then fill the dialog box with:
gksudo mousepad /path/to/myfile
Depending on your configuration, you might be asked to enter your root password. If you are using the default safe mode, nothing will be asked by the system.
You can now modify your file and save it.
[edit]
Using the command line
Open a Terminal and use the following command to launch Mousepad:
gksudo mousepad /path/to/myfile
If you want to use a command line editor, you can use vim which also shipped with the Linutop:
sudo vim /path/to/myfile
You can now modify your file and save it.

