Strona 2 z 3

: 09 lipca 2007, 22:22
autor: ewter
W nano:

Kod: Zaznacz cały

 Error writing /etc/resolv.conf: Brak dostępu
w mcedit:

Kod: Zaznacz cały

Błąd przy próbie zapisu

: 09 lipca 2007, 22:28
autor: Kaka'
ewter, a może spróbuj zmienić zawartość pliku z innego systemu (Windows/LiveCD)...

: 09 lipca 2007, 22:33
autor: ewter
Gdybym posiadał szczegółową wiedzę w jaki sposób to uczynić to z pewnością bym tak to wykonał :-)

: 09 lipca 2007, 22:37
autor: Kaka'
A co to za problem odpalić LiveCD, zamontować partycję i zmienić ten plik?

: 09 lipca 2007, 23:36
autor: ewter
żaden :)

: 10 lipca 2007, 12:21
autor: Rad
Sprawdź atrybuty tego pliku - lsattr

: 10 lipca 2007, 12:42
autor: ewter
No niestety liveCD tez nie pomogło... pokazuje te same błędy.

@Rad

Kod: Zaznacz cały

debian:/etc# lsattr resolv.conf
----i------------- resolv.conf

: 10 lipca 2007, 12:53
autor: Rad
Właśnie - jest i - czyli plik nie może zostać zmieniony. Z roota daj

Kod: Zaznacz cały

chattr -i /etc/resolv.conf

: 10 lipca 2007, 12:59
autor: ewter
no nareszcie :) mogę modyfikować.

Tylko, że po wpisaniu vim relolv.conf mam takie info:

Kod: Zaznacz cały

E325: ATTENTION
Found a swap file by the name ".resolv.conf.swp"
          owned by: root   dated: Thu Jul  5 20:50:44 2007
         file name: /etc/resolv.conf
          modified: YES
         user name: root   host name: debian
        process ID: 2906
While opening file "resolv.conf"
             dated: Tue Jul 10 12:56:54 2007
      NEWER than swap file!

(1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r resolv.conf"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".resolv.conf.swp"
-- More --                                        
Dzieki @Rad ;)

: 10 lipca 2007, 13:03
autor: Rad
Bo edytowałeś, zrobił się swap i coś się stało z vimem. Jak ci to wyskoczy, to weź tam delete swp albo coś takiego.