Sample Header Ad - 728x90

sudo segmentation fault

0 votes
1 answer
196 views
In a remote system to which I don't have console access, which I'm connecting through ssh, I broke the sudo installation and now I'm not able to use it at all, and I'm not able to restart as a root. The command I ran was:
-sh
sudo mv /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/libm.so.6_org
Everytime I do sudo it says segmentation fault, for example:
-shellsession
~$ sudo -s
Segmentation fault (core dumped)
As specific cases, - id works: uid=1479554(s1474782) gid=100(users) groups=100(users),27(sudo),999(docker) - sh works as well - sudo id doesn't work: sudo id Segmentation fault (core dumped) - su s1474782 -c id doesn't work: sudo id Segmentation fault (core dumped) I was updating some libraries and I think I broke the libm.so.6 library, however I don't see sudo depending on it:
-shellsession
ldd $(which sudo)
    linux-vdso.so.1 =>  (0x00007ffd7ef9e000)
    libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007f139de21000)
    libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f139dbff000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f139d9fc000)
    libsudo_util.so.0 => /usr/lib/sudo/libsudo_util.so.0 (0x00007f139d7e8000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f139d41e000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f139d1ae000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f139cfaa000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f139e26b000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f139cd8d000)
Any advice how to solve this? I can just re-install sudo?
Asked by user236040 (1 rep)
Oct 30, 2024, 02:50 PM
Last activity: Oct 31, 2024, 02:51 PM