PDA

Bekijk de volledige versie : Vi read Only - Please help



Gizmo1007
13-10-2007, 20:14
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.

jaapjeuk
13-10-2007, 20:19
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

gratitude182
13-10-2007, 20:33
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

Gizmo1007
13-10-2007, 20:46
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..:confused:

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

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..

jaapjeuk
13-10-2007, 20:51
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..:confused:

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

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>

Gizmo1007
13-10-2007, 20:58
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...

jaapjeuk
14-10-2007, 00:16
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

Gizmo1007
14-10-2007, 02:21
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?:confused:

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

gratitude182
14-10-2007, 11:16
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

Gizmo1007
14-10-2007, 17:05
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.:D