Results 1 to 10 of 10

Thread: Vi read Only - Please help

  1. #1

    Vi read Only - Please help

    Please help,

    I followed all the instruction in Kfurges firmware and all was working fine.
    Now when I connect and try to use Vi to edit rc.local it comes back with [Read-only] on all files I Try to edit.

    Really stuck as I cannot change any config files with the issue, and i don't want to have to start again.
    Attached Images Attached Images  

  2. #2
    Join Date
    Mar 2005
    Location
    the hague
    Posts
    33

    ls -lap /opt/etc/ushare.conf

    Quote Originally Posted by Gizmo1007 View Post
    Please help,

    I followed all the instruction in Kfurges firmware and all was working fine.
    Now when I connect and try to use Vi to edit rc.local it comes back with [Read-only] on all files I Try to edit.

    Really stuck as I cannot change any config files with the issue, and i don't want to have to start again.
    ls -lap /opt/etc/ushare.conf
    chmod 777 /opt/etc/ushare.conf

    retry vi ..

    if, not show results of:
    mount
    cat /etc/mtab
    df
    cat /etc/fstab
    cfdisk /dev/sda
    sfdisk -l /dev/sda
    Last edited by jaapjeuk; 13-10-2007 at 20:24.

  3. #3
    i think you haven't supreme permissions because u aren't "root"

    with the command "sudo bash" you get the supreme permissions with your user password.

    grat182

  4. #4
    Quote Originally Posted by gratitude182 View Post
    i think you haven't supreme permissions because u aren't "root"

    with the command "sudo bash" you get the supreme permissions with your user password.

    grat182
    I was thinking that myself, can you send me the line to set up Supreme permissions I thought I set it up correctly.

    I did try sudo bash then entered the password and then tried with no joy..

    I have to restart with firmware flash
    It will only be the third time

    I have tried to use sudo bash but this hasn't worked.

    Newbie to linux, really like it but, patients is a virtue.

    Thanks for the help..

  5. #5
    Join Date
    Mar 2005
    Location
    the hague
    Posts
    33

    try: su -

    Quote Originally Posted by Gizmo1007 View Post
    I was thinking that myself, can you send me the line to set up Supreme permissions I thought I set it up correctly.

    I did try sudo bash then entered the password and then tried with no joy..

    I have to restart with firmware flash
    It will only be the third time

    I have tried to use sudo bash but this hasn't worked.

    Newbie to linux, really like it but, patients is a virtue.

    Thanks for the help..
    try:
    who
    whoami
    uname -a

    then
    su -
    <enter root pwd>

  6. #6
    Quote Originally Posted by jaapjeuk View Post
    ls -lap /opt/etc/ushare.conf
    chmod 777 /opt/etc/ushare.conf

    retry vi ..

    if, not show results of:
    mount
    cat /etc/mtab
    df
    cat /etc/fstab
    cfdisk /dev/sda
    sfdisk -l /dev/sda
    hi Jaapjeuk,

    See the output from the information you kindly provided, no joy as yet...
    Attached Images Attached Images  

  7. #7
    Join Date
    Mar 2005
    Location
    the hague
    Posts
    33
    Quote Originally Posted by Gizmo1007 View Post
    hi Jaapjeuk,

    See the output from the information you kindly provided, no joy as yet...
    cdisk and sfdisk must be run as root user, no problem for now

    the file-system is rewritable, thats OK, you are able to rewrite that file bye means of vi

    chmod 777 /opt/etc/ushare.conf is not permitted,
    because root is the owner of that specific file and not user Brian, you have to edit that file as root user, first do:

    su -

    (enter the root password afterwards, you should know your root password)

    and vi to edit that file
    Last edited by jaapjeuk; 14-10-2007 at 00:28.

  8. #8
    I seem to be going wrong at Step 5 of Kfurge's firmware change
    making a better system.

    Can someone please tell me how you give yourself Supreme permissions in sudoers?

    Give yourself supreme permissions in /opt/etc/sudoers

    vi /opt/etc/sudoers

    What do you put where?

    i have set up a few accounts and they all only give read only when I get to step 5. Sorry for all the posts but I am newbie at Linux and do want to learn but getting stuck at this point.

    Tks

  9. #9
    you have to give you supreme permissions there:

    vi opt/etc/sudoers

    # User privilege specification
    root ALL=(ALL) ALL
    yourusername ALL=(ALL) ALL

    but i think you have a wrong version of sudo installed and thats the reason why it won't work!

    read this thread through:

    http://www.wl500g.info/showthread.php?t=10830

    grat182

  10. #10

    Talking

    Quote Originally Posted by gratitude182 View Post
    you have to give you supreme permissions there:

    vi opt/etc/sudoers




    but i think you have a wrong version of sudo installed and thats the reason why it won't work!

    read this thread through:

    http://www.wl500g.info/showthread.php?t=10830

    grat182
    Hi grat182,

    Thanks a Million, finally got it to work, the previous version of Sudo did the job. All working

    Thanks to everyone who helped out on the post, Once I finish the rest of the mods, bitorrent, php and Mysql I will write another tutorial for all the newbie linux out there,

    Keep up the good work, for anyone who's interested, I got ushare to stream to 2 Dsm-320 units simultaneously Wireless in 2 different rooms, and it worked a treat.

Similar Threads

  1. read only file system
    By webzee in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 11
    Last Post: 08-11-2008, 08:48
  2. eggdrop on wl-500g?
    By daffeh in forum WL-500g Q&A
    Replies: 9
    Last Post: 22-08-2005, 13:47
  3. Ftp Wan
    By CPTC in forum WL-500g Q&A
    Replies: 9
    Last Post: 07-04-2005, 21:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •