* [Comm] resolv.conf
@ 2014-02-15 17:46 Vladimir Karpinsky
2014-02-15 18:34 ` Андрій Добровольський
0 siblings, 1 reply; 7+ messages in thread
From: Vladimir Karpinsky @ 2014-02-15 17:46 UTC (permalink / raw)
To: ALT Linux Community general discussions
Здравствуйте!
Компьютер с полностью статической сетью, понадобилось поменять DNS, полез в
/etc/net/ifaces/br0/resolv.conf, поменял, перестартовал сеть --- ноль
реакции, /etc/resolv.conf по-прежнему старый, причём с датой от февраля
2013, в то время, как uptime всего 70 дней. Изменение-удаление
/etc/resolv.conf невозможно даже для рута (-rw-r--r--). После этого
обнаружил, что запущен NetworkManager, видимо пролез при каких-то
обновлениях. Остановил его, прописал в options NM_CONTROLLED=no, опять
перестартовал сеть (service network restart) --- с resolv.conf всё
по-прежнему: старый, невозможно изменить. Как побороть такое?
P.S. Хотелось бы обойтись без перезагрузки компа.
--
С уважением,
Владимир.
---
Это сообщение свободно от вирусов и вредоносного ПО благодаря защите от вирусов avast!
http://www.avast.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] resolv.conf
2014-02-15 17:46 [Comm] resolv.conf Vladimir Karpinsky
@ 2014-02-15 18:34 ` Андрій Добровольський
2014-02-15 18:58 ` Vladimir Karpinsky
0 siblings, 1 reply; 7+ messages in thread
From: Андрій Добровольський @ 2014-02-15 18:34 UTC (permalink / raw)
To: ALT Linux Community general discussions
2014-02-15 19:46 GMT+02:00 Vladimir Karpinsky <vkarpinsky@mail.ru>:
> Здравствуйте!
>
> Компьютер с полностью статической сетью, понадобилось поменять DNS, полез в
> /etc/net/ifaces/br0/resolv.conf, поменял, перестартовал сеть --- ноль
> реакции, /etc/resolv.conf по-прежнему старый, причём с датой от февраля
> 2013, в то время, как uptime всего 70 дней. Изменение-удаление
> /etc/resolv.conf невозможно даже для рута (-rw-r--r--). После этого
> обнаружил, что запущен NetworkManager, видимо пролез при каких-то
> обновлениях. Остановил его, прописал в options NM_CONTROLLED=no, опять
> перестартовал сеть (service network restart) --- с resolv.conf всё
> по-прежнему: старый, невозможно изменить. Как побороть такое?
>
> P.S. Хотелось бы обойтись без перезагрузки компа.
>
Что-то подобное недавно обсуждалось... И там советовали сперва глянуть на вывод
resolvconf -i
--
Regards,
Andrii Dobrovol`s`kyj
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] resolv.conf
2014-02-15 18:34 ` Андрій Добровольський
@ 2014-02-15 18:58 ` Vladimir Karpinsky
2014-02-15 19:23 ` Vasiliy D.Sevostyanov,
0 siblings, 1 reply; 7+ messages in thread
From: Vladimir Karpinsky @ 2014-02-15 18:58 UTC (permalink / raw)
To: community
15.02.2014 22:34, Андрій Добровольський пишет:
> 2014-02-15 19:46 GMT+02:00 Vladimir Karpinsky <vkarpinsky@mail.ru>:
>> Компьютер с полностью статической сетью, понадобилось поменять DNS, полез в
>> /etc/net/ifaces/br0/resolv.conf, поменял, перестартовал сеть --- ноль
>> реакции, /etc/resolv.conf по-прежнему старый, причём с датой от февраля
>> 2013, в то время, как uptime всего 70 дней. Изменение-удаление
>> /etc/resolv.conf невозможно даже для рута (-rw-r--r--). После этого
>> обнаружил, что запущен NetworkManager, видимо пролез при каких-то
>> обновлениях. Остановил его, прописал в options NM_CONTROLLED=no, опять
>> перестартовал сеть (service network restart) --- с resolv.conf всё
>> по-прежнему: старый, невозможно изменить. Как побороть такое?
>>
>> P.S. Хотелось бы обойтись без перезагрузки компа.
>>
> Что-то подобное недавно обсуждалось... И там советовали сперва глянуть на вывод
> resolvconf -i
br0
Я гуглю, но ничего такого пока не нашёл. Во-первых, я не понимаю, кто так
крепко держит resolv.conf, что рутом с ним вообще ничего не сделать.
Подозреваю, что ответ на этот вопрос и приведёт к решению...
--
С уважением,
Владимир.
---
Это сообщение свободно от вирусов и вредоносного ПО благодаря защите от вирусов avast!
http://www.avast.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] resolv.conf
2014-02-15 18:58 ` Vladimir Karpinsky
@ 2014-02-15 19:23 ` Vasiliy D.Sevostyanov,
2014-02-15 19:51 ` Vladimir Karpinsky
0 siblings, 1 reply; 7+ messages in thread
From: Vasiliy D.Sevostyanov, @ 2014-02-15 19:23 UTC (permalink / raw)
To: ALT Linux Community general discussions
Hi, you wrote 22:58 Sat 15 Feb :
>
> br0
>
> Я гуглю, но ничего такого пока не нашёл. Во-первых, я не понимаю, кто так
> крепко держит resolv.conf, что рутом с ним вообще ничего не сделать.
> Подозреваю, что ответ на этот вопрос и приведёт к решению...
lsattr /etc/resolv/conf
chown root:root /etc/resolv.conf
--
С уважением, Василий Д. Севостьянов.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] resolv.conf
2014-02-15 19:23 ` Vasiliy D.Sevostyanov,
@ 2014-02-15 19:51 ` Vladimir Karpinsky
2014-02-15 19:54 ` Андрій Добровольський
0 siblings, 1 reply; 7+ messages in thread
From: Vladimir Karpinsky @ 2014-02-15 19:51 UTC (permalink / raw)
To: community
15.02.2014 23:23, Vasiliy D.Sevostyanov, пишет:
> lsattr /etc/resolv/conf
----i--------e-- /etc/resolv.conf
> chown root:root /etc/resolv.conf
chown: changing ownership of ‘/etc/resolv.conf’: Operation not permitted
то же и с chmod, rm, mv и т.п.
--
С уважением,
Владимир.
---
Это сообщение свободно от вирусов и вредоносного ПО благодаря защите от вирусов avast!
http://www.avast.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] resolv.conf
2014-02-15 19:51 ` Vladimir Karpinsky
@ 2014-02-15 19:54 ` Андрій Добровольський
2014-02-16 6:25 ` Vladimir Karpinsky
0 siblings, 1 reply; 7+ messages in thread
From: Андрій Добровольський @ 2014-02-15 19:54 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Sat, Feb 15, 2014 at 9:51 PM, Vladimir Karpinsky <vkarpinsky@mail.ru> wrote:
> 15.02.2014 23:23, Vasiliy D.Sevostyanov, пишет:
>>
>> lsattr /etc/resolv/conf
>
> ----i--------e-- /etc/resolv.conf
>>
>> chown root:root /etc/resolv.conf
>
> chown: changing ownership of '/etc/resolv.conf': Operation not permitted
>
> то же и с chmod, rm, mv и т.п.
>
Ну так Вы повесили атрибут неизменяемости на файл и удивляетесь...
--
Regards,
Andrii Dobrovol`s`kyj
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-02-16 6:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-15 17:46 [Comm] resolv.conf Vladimir Karpinsky
2014-02-15 18:34 ` Андрій Добровольський
2014-02-15 18:58 ` Vladimir Karpinsky
2014-02-15 19:23 ` Vasiliy D.Sevostyanov,
2014-02-15 19:51 ` Vladimir Karpinsky
2014-02-15 19:54 ` Андрій Добровольський
2014-02-16 6:25 ` Vladimir Karpinsky
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git