mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-06-14 19:17:21 +02:00
etc/*resolv*.bash: let's not chattr +i anymore
This commit is contained in:
parent
4b60ef5735
commit
e564cde191
@ -22,7 +22,7 @@ printf 'nameserver ::1\nnameserver 127.0.0.1\nnameserver 127.0.0.53\nsearch .\no
|
|||||||
# Remove all other permissions than everyone reading resolv.conf
|
# Remove all other permissions than everyone reading resolv.conf
|
||||||
chmod -v a=r /etc/resolv.conf
|
chmod -v a=r /etc/resolv.conf
|
||||||
# Make resolv.conf immutable again so it's pretty sure nothing else edits it.
|
# Make resolv.conf immutable again so it's pretty sure nothing else edits it.
|
||||||
chattr -V +i /etc/resolv.conf
|
#chattr -V +i /etc/resolv.conf
|
||||||
|
|
||||||
# Let's just see it's ok
|
# Let's just see it's ok
|
||||||
ls -l /etc/resolv.conf
|
ls -l /etc/resolv.conf
|
||||||
|
@ -34,7 +34,7 @@ printf 'nameserver 127.0.0.53\nnameserver 127.0.0.53\nnameserver 127.0.0.53\nsea
|
|||||||
# Remove all other permissions than everyone reading resolv.conf
|
# Remove all other permissions than everyone reading resolv.conf
|
||||||
chmod -v a=r /etc/resolv.conf
|
chmod -v a=r /etc/resolv.conf
|
||||||
# Make resolv.conf immutable again so it's pretty sure nothing else edits it.
|
# Make resolv.conf immutable again so it's pretty sure nothing else edits it.
|
||||||
chattr -V +i /etc/resolv.conf
|
#chattr -V +i /etc/resolv.conf
|
||||||
|
|
||||||
# Let's just see it's ok
|
# Let's just see it's ok
|
||||||
ls -l /etc/resolv.conf
|
ls -l /etc/resolv.conf
|
||||||
|
@ -27,7 +27,7 @@ printf "nameserver %b\nnameserver %b\nnameserver %b\nsearch .\noptions timeout:1
|
|||||||
# Remove all other permissions than everyone reading resolv.conf
|
# Remove all other permissions than everyone reading resolv.conf
|
||||||
chmod -v a=r /etc/resolv.conf
|
chmod -v a=r /etc/resolv.conf
|
||||||
# Make resolv.conf immutable again so it's pretty sure nothing else edits it.
|
# Make resolv.conf immutable again so it's pretty sure nothing else edits it.
|
||||||
chattr -V +i /etc/resolv.conf
|
#chattr -V +i /etc/resolv.conf
|
||||||
|
|
||||||
# Let's just see it's ok
|
# Let's just see it's ok
|
||||||
ls -l /etc/resolv.conf
|
ls -l /etc/resolv.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user