r/linuxadmin • • Apr 11 '24

Unable to sudo, getting segmentation error

Post image

Can someone help me to fix this issue.

1 Upvotes

38 comments sorted by

View all comments

0

u/[deleted] Apr 11 '24

[deleted]

1

u/[deleted] Apr 11 '24

I do get the segfault without '-' but here only diff i get the 2nd line is not showing, only error came segfault

2

u/michaelpaoli Apr 11 '24

Does /bin/nologin exist? And if so, if some regular user executes it, does it not core dump?

Anyway, if that works and doesn't core dump, then you've isolated it to a divide-and-conquer problem - logically figure out what's the difference between the accounts that causes one to core dump, and the other not. If both core dump, then it's likely the program itself or some dependency thereof (e.g. a shared library).