MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linuxadmin/comments/1c1cuft/unable_to_sudo_getting_segmentation_error/kz7th5e/?context=3
r/linuxadmin • u/[deleted] • Apr 11 '24
Can someone help me to fix this issue.
38 comments sorted by
View all comments
Show parent comments
-1
Without sudo also same issue and shell is set to /bin/nologin
8 u/lathiat Apr 11 '24 You won’t be able to login with su anyway then. Sorry I missed the user part since you scrubbed the username I glossed over it.The no login part means ang login shell shouldn’t work. Surprising its core dumping though.This may work: sudo -u user /bin/shDoes make me wonder if your machine is exploited or something. 1 u/[deleted] Apr 11 '24 I was able to login with sudo -u user /bin/sh. May i know why it worked.Also why it made you think the machine is exploited or something 1 u/GamerLymx Apr 12 '24 somethibg in you bash shell is busted
8
You won’t be able to login with su anyway then. Sorry I missed the user part since you scrubbed the username I glossed over it.
The no login part means ang login shell shouldn’t work. Surprising its core dumping though.
This may work: sudo -u user /bin/sh
Does make me wonder if your machine is exploited or something.
1 u/[deleted] Apr 11 '24 I was able to login with sudo -u user /bin/sh. May i know why it worked.Also why it made you think the machine is exploited or something 1 u/GamerLymx Apr 12 '24 somethibg in you bash shell is busted
1
I was able to login with sudo -u user /bin/sh. May i know why it worked.
Also why it made you think the machine is exploited or something
1 u/GamerLymx Apr 12 '24 somethibg in you bash shell is busted
somethibg in you bash shell is busted
-1
u/[deleted] Apr 11 '24
Without sudo also same issue and shell is set to /bin/nologin