zillah Posted January 6, 2006 Report Share Posted January 6, 2006 When I use Knoppix V4 to edit file , I received this message : You do not have enough permission to read file://mnt/hdb4/boot/grub/menu.lst How can I get root previlidge to modify above file ? Quote Link to post Share on other sites
shanenin Posted January 6, 2006 Report Share Posted January 6, 2006 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 nanonano -w menu.lst Quote Link to post Share on other sites
zillah Posted January 15, 2006 Author Report Share Posted January 15, 2006 nano -w menu.lstIt did not work :root@0[knoppix]# nano -W /mnt/hdb6/boot/grub/menu.lstbash: nano: command not foundroot@0[knoppix]# nano -w /mnt/hdb6/boot/grub/menu.lstbash: nano: command not found Quote Link to post Share on other sites
zillah Posted January 15, 2006 Author Report Share Posted January 15, 2006 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. Quote Link to post Share on other sites
shanenin Posted January 15, 2006 Report Share Posted January 15, 2006 you can just make your shell a root shell with the su commandsuvim /mnt/hdb6/boot/grub/menu.lstI guess knoppix does not have the text editer "nano". Quote Link to post Share on other sites
iccaros Posted January 16, 2006 Report Share Posted January 16, 2006 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. Quote Link to post Share on other sites
zillah Posted January 23, 2006 Author Report Share Posted January 23, 2006 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 ? Quote Link to post Share on other sites
iccaros Posted January 24, 2006 Report Share Posted January 24, 2006 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> Quote Link to post Share on other sites
zillah Posted January 24, 2006 Author Report Share Posted January 24, 2006 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 ? Quote Link to post Share on other sites
iccaros Posted January 24, 2006 Report Share Posted January 24, 2006 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 ect3.yes Quote Link to post Share on other sites
zillah Posted January 29, 2006 Author Report Share Posted January 29, 2006 use the mount command The output for this command was not helpful.What I did:1- mount /dev/hdb6 /mnt/hdb62- 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.