etc/*resolv*.bash: let's not chattr +i anymore

This commit is contained in:
Aminda Suomalainen 2025-05-04 09:52:20 +03:00
parent 4b60ef5735
commit e564cde191
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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