LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Changing menu.lst to writtable (https://www.linuxquestions.org/questions/linux-general-1/changing-menu-lst-to-writtable-568002/)

Pyro Tony 07-10-2007 12:01 AM

Changing menu.lst to writtable
 
I have finnaly gotten Damn Small Linux installed on my hard drive. My question now is how can i edit the GRUB config file. i have found it its called menu.lst but it is read only. when i right click menu.lst and change it to writtable my file browser says something along the lines of access denied and returns menu.lst to default settings. i can still read this file using the beaver editor i just cant write to it. any help is appriciated. thanks.

reddazz 07-10-2007 12:07 AM

You probably need to be root in order to edit or change the permissions on that file. Fire up a terminal and do
Code:

$su -
#vim /boot/grub/menu.lst

Enter roots password when prompted and substitute vi with whatever text editor you are familiar with.

Pyro Tony 07-10-2007 10:11 AM

Thanks a lot. As you can probably see i am quiet new to linux.

Ahmed 07-10-2007 11:13 AM

If you generally want to learn about access permissions and how to change them, execute:

Code:

$ man chmod
and read through the manuals. I strongly advise you however NOT to change the permissions of anything outside your /home directory, so that you as a user can access it easily. Log in as root for that kind of stuff while leaving all the restrictions as they are. That's part of why Linux is so secure, after all.
To log in as root in a terminal, as reddazz said:
Code:

$ su
or
$ su -

And to logout and go back to the user, just enter:

Code:

# logout
Or even quicker, on an empty command line, press Ctrl and d simultaneously.

-A


All times are GMT -5. The time now is 03:42 PM.