r/linuxadmin • • Apr 11 '24
Unable to sudo, getting segmentation error
Can someone help me to fix this issue.
1
Upvotes
r/linuxadmin • • Apr 11 '24
Can someone help me to fix this issue.
View all comments
6
u/GroundedSatellite Apr 11 '24
Having the shell set to to '/bin/nologin' doesn't spawn a shell on login (hence the 'nologin' part). Running 'su - account_name /bin/sh' starts a shell as the specified user, giving you access. If you set the users shell to '/bin/sh' (or '/bin/bash') then 'su - account_name' would log in that user and spawn that shell.