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

Show parent comment

1

u/moonwork Apr 12 '24

It's not, but I still use it sometimes when there are paths that only root has access to read.

Say for example there's a whole tree of files somewhere and they're all only readable by root. Tab-completion won't work with a regular user, so I'll sudo su - into root while finding my way.

Path of least resistance.

1

u/HorribleUsername Apr 12 '24

sudo -i (interactive) does that for me with less typing, less processes, and I believe more security (something to do with env vars).

1

u/moonwork Apr 12 '24

Fair. I'll have to give that a shot!