You are not logged in.

#1 2010-02-14 21:12:13

jason1308
Member
Registered: 2010-01-18
Posts: 7

cannot overwrite a file

Sorry to be a pain, as the solution is probably easy, but for the life of me Icannot solve it.

I have just updated with Pacman, and after the install in the terminal I have this message -

The kernel-mode plugin has a new place.
>>> It's now located under /usr/lib/rp-pppoe/rp-pppoe.so
>>> Change LINUX_PLUGIN to the new path in your /etc/ppp/pppoe.conf


Now I went to the file and changed the setting as advised, tried to save it, but it want let me overwrite the file.

What do I do?

Thanks in advance

Offline

#2 2010-02-14 21:12:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: cannot overwrite a file

Are you editing it as root?

Offline

#3 2010-02-14 21:25:02

jason1308
Member
Registered: 2010-01-18
Posts: 7

Re: cannot overwrite a file

I am logged in as root in terminal and I also opened a terminal in the /etc/ppp and logged in as root

Offline

#4 2010-02-14 21:57:17

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: cannot overwrite a file

Is it perhaps marked as immutable?

lsattr /etc/ppp/pppoe.conf

Offline

#5 2010-02-14 22:17:36

jason1308
Member
Registered: 2010-01-18
Posts: 7

Re: cannot overwrite a file

sorry falconindy, not sure what you mean.  the file doesn't have a red X on it.

What I have tried to do, is in ppp opened a terminal, did su to be root.

I then opened the file in mousepad and did the editing, and then went to save and it said can't open file to write.

Offline

#6 2010-02-14 22:25:32

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: cannot overwrite a file

falconidy wanted you to run that in the terminal. Are you opening mousepad with root privileges? By typing "mousepad" in the root terminal, for example? Simply logging in as root somewhere doesn't give you root permissions everywhere. That is also what Allan meant by editing the file as root.

Last edited by jac (2010-02-14 22:25:59)

Offline

#7 2010-02-14 22:26:28

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: cannot overwrite a file

There's a bit of a disconnect here. You logged in as root and then opened the file via a graphical app? Am I understanding that correctly? Those two events are mutually exclusive. Root access in a terminal does not give you root access everywhere else.

Offline

#8 2010-02-14 22:51:09

jason1308
Member
Registered: 2010-01-18
Posts: 7

Re: cannot overwrite a file

Thanks everyone, now I understand what I did wrong, and learnt about root access at the same time.

Offline

Board footer

Powered by FluxBB