Changing Files As Root

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
davec51
Posts: 5
Joined: 10. Sep 2011, 21:49
Location: Northern Virginia USA

Changing Files As Root

Post by davec51 »

I just installed Salix. Now I have to change a file (the menu.lst of my Grub) on another partition. I can get to it through Gigolo, but I don't have permission to change it. The sign-in screen says I can't sign on as administrator. I need to be root in the GUI, not just in a terminal. I apologize if this is a simple question, but I couldn't find my answer on these forums.
User avatar
Akuna
Salix Wizard
Posts: 1038
Joined: 14. Jun 2009, 12:25

Re: Changing Files As Root

Post by Akuna »

If you configured your other partition to be in /etc/fstab during the installation process, you shouldn't need gigolo.

Bur rather, in a terminal :

Code: Select all

su
(then give your root password, and then the following)
geany /path/to/the/file/that/needs/modification
Image
What really matters is where you are going, not where you come from.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Changing Files As Root

Post by mimosa »

To find out where (and whether) it is mounted, do:

Code: Select all

$mount
If not, create a directory to mount it to, such as:

Code: Select all

$su
#mkdir /tmp/other_distro
#mount /dev/sdaX /tmp/other_distro
#cd /tmp/other_distro
... and then edit the grub file.

Alternatively, consider using Lilo as bootloader - Salix has a very intuitive GUI tool to set this up which recognises existing OSs, Lilosetup, in the System menu.
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: Changing Files As Root

Post by gapan »

davec51 wrote:I need to be root in the GUI, not just in a terminal.
No, you don't. There is absolutely nothing that requires someone to be root in the GUI. The instructions posted above should be enough. If you need an easy (clicky-clicky) way to mount local devices not in fstab without opening a root terminal, you can install gmountman from the repositories. But you will still need root privileges to edit any system files.
Image
Image
Post Reply