No write access

So, I was trying to change my MAC adress. I found a solution to do this perminantly by googling etc. However I had to manualy add a line to the file (/etc/sysconfig/network/) ifcfg-eth0. Turns out I don’t have write access to this file. I’m logged in as root, so how can I not have access?

I tried a few other files and it turns out I don’t have access to any files? Is there something I can do to fix this?

Actually you should not log in as root, bad idea.

He probably isn’t anyway…

Try opening a terminal, and typing


su -

to become root. You can type ‘whoami’ to check that it’s worked. Still no joy?

Hiya,

It could be that permissions have been set to deny write access to this
file. Try (as root) ‘chmod u+w /etc/sysconfig/network/ifcfg-eth0’ then
attempt to edit the file.


kev.

thx ( :

that helped

Kevin Lucas wrote:

> Hiya,
>
> It could be that permissions have been set to deny write access to this
> file. Try (as root) ‘chmod u+w /etc/sysconfig/network/ifcfg-eth0’ then
> attempt to edit the file.
>
It’s also possible–although less likely–that the file has the immutable
attribute set. If you find that you still can’t edit the file after
changing the permissions try ‘chattr -i /etc/sysconfig/network/ifcfg-eth0’.

kev.