15.4 - Why can't I lsattr on /run/netconfig/resolv.conf?
All, This is strange, I can't list extended attributes on the real resolv.conf, e.g. # lsattr /run/netconfig/resolv.conf lsattr: Operation not supported While reading flags on /run/netconfig/resolv.conf or the same thing with realpath, e.g. # lsattr "$(realpath /etc/resolv.conf)" lsattr: Operation not supported While reading flags on /run/netconfig/resolv.conf I don't do a lot with extended attributes, but there are times I want to check or set them. Does the file have to previously have had the 'e' option set? If so, the man page for chattr say 'e' cannot be removed by chattr, so how would one set and remove the 'e' attribute if you no longer wanted extended attributes on the file? -- David C. Rankin, J.D.,P.E.
On 11.12.2022 08:11, David C. Rankin wrote:
All,
This is strange, I can't list extended attributes on the real resolv.conf, e.g.
# lsattr /run/netconfig/resolv.conf lsattr: Operation not supported While reading flags on /run/netconfig/resolv.conf
tmpfs does not support file attributes
or the same thing with realpath, e.g.
# lsattr "$(realpath /etc/resolv.conf)" lsattr: Operation not supported While reading flags on /run/netconfig/resolv.conf
I don't do a lot with extended attributes, but there are times I want to check or set them. Does the file have to previously have had the 'e' option set? If so, the man page for chattr say 'e' cannot be removed by chattr, so how would one set and remove the 'e' attribute if you no longer wanted extended attributes on the file?
participants (2)
-
Andrei Borzenkov
-
David C. Rankin