Ok, I made a mistake and I'm struggling to fix it:
I was looking for a libGL.so
to link a project, and found it in a (conan-related) package that is mounted during build time. The default system /usr/lib64/libGL.so.1
didn't seem to get picked up (different versions/dependencies?)
So I turned to ld.so.config
to add the folder containing libGL.so
, just under the only other line:
include /etc/ld.so.config.d/*
/hfs/xyz/conan-package-123/../usr/lib64/ # the line I added
then I ran
sudo ldconfig
and then was greeted by a slew of errors of the form
"ldconfig: /hfs/xyz/conan-package-123/../usr/lib64/libGL.so is not a symbolic link"
linking still does not work, but worse, I seem to have lost sudo privileges, and can no longer either run sudo ldconfig
, su ldconfig
or edit/write /etc/ld.so.config
. I also tried using local versions from my home-dir for both the config and cache files using the ldconfig
flags -f
and -C
, I don't seem to get my privileges back.
For the record, my /etc/passwd
file is -rw-r--r-- root root
and /etc
is drwxr-xr-x root root
, and pwck
says
wck: Permission denied.
pwck: cannot lock /etc/passwd; try again later.
Should I restart some service for that? Otherwise that would be a true catch 22. What can I do?