Knoppix V4 And /grub/boot/menu.lst Permission


Recommended Posts

I would do it this way. Open up a terminal, then enter the su command. It will give you root privledges without having to enter a password. now start any editer from the command line. For simple text diting I like nano

nano -w menu.lst

Link to post
Share on other sites
  • 2 weeks later...
Then I found option called "root shell",,,I opened that one and I typed in:

vim /mnt/hdb6/boot/grub/menu.lst,,,,,,,,,,,,,,,,,,,,,,,it did work,,,

nedit /mnt/hdb6/boot/grub/menu.lst,,,,,,,,,,,,,,,,,,,,,,,it did work as well.

vi

vim is normally pointing to vi so its place in path is vi in debian.

Link to post
Share on other sites
vim /mnt/hdb6/boot/grub/menu.lst,,,,,,,,,,,,,,,,,,,,,,,it did work,,,

nedit /mnt/hdb6/boot/grub/menu.lst,,,,,,,,,,,,,,,,,,,,,,,it did work as well.

Today I realized I can only read the files above,,,I can not modify them,,,what should I do ?

are you root?

is the partition mounted read only?

if yes to the first but no to the second.. chmod +w <filewithpath>

Link to post
Share on other sites
1- are you root?

2- is the partition mounted read only?

3- if yes to the first but no to the second.. chmod +w <filewithpath>

1- Yes I am root ,,,what I did to act as root,,,I typed in: su ,,,,Am I right?

2- How can I check that ?do you mean ls -al ?

3- do you mean I have to change the permission for "chmod +w /mnt/hdb6/boot/grub/menu.lst" or what ever file ?

Link to post
Share on other sites

1- are you root?

2- is the partition mounted read only?

3- if yes to the first but no to the second.. chmod +w <filewithpath>

1- Yes I am root ,,,what I did to act as root,,,I typed in: su ,,,,Am I right?

2- How can I check that ?do you mean ls -al ?

3- do you mean I have to change the permission for "chmod +w /mnt/hdb6/boot/grub/menu.lst" or what ever file ?

1. yes, I use su - as the - will give you root enviroment varables.

2. use the mount command

huskeyw usr # mount
/dev/hda3 on / type reiserfs (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
/dev/hda4 on /home type reiserfs (rw,noatime)
/dev/sda1 on /mnt/maxtor1 type ext2 (rw,nosuid,nodev)
/dev/sda2 on /mnt/maxtor2 type ext3 (rw,nosuid,nodev)
/dev/sda3 on /mnt/maxtor3 type ext3 (rw,nosuid,nodev)
none on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)
//192.168.1.209/movies on /mnt/lincs type smbfs (0)

you can see the () behind he mount tell you if it is read readonly readwrite ect

3.yes

Link to post
Share on other sites
use the mount command

The output for this command was not helpful.

What I did:

1- mount /dev/hdb6 /mnt/hdb6

2- Right click on the hdb6 icon (my case).

3- Click on "Actions"

4- Change the read/write permissions to writeable.

Then I was able to modify the file.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...