🥺: the best sudo replacement
xeiaso.net
🥺: the best sudo replacement
1–10 of 559 posts
Re: 🥺: the best sudo replacement
#2Re: 🥺: the best sudo replacement
#3Re: 🥺: the best sudo replacement
#4[flagged]
Re: 🥺: the best sudo replacement
#5[flagged]
Re: 🥺: the best sudo replacement
#6Re: 🥺: the best sudo replacement
#7Re: 🥺: the best sudo replacement
#8The actual title is supposed to be "🥺: the best sudo replacement", but I'm not surprised that Hacker News stripped the emoji.
Re: 🥺: the best sudo replacement
#9Wait? it doesn't make any sense. So any userspace program can call `setuid(0)` and `execv()`? Why is there sudo in the first place? I am not getting it.
https://en.wikipedia.org/wiki/Setuid
Sudo exists as an elaborate ACL scheme implemented in user-space which takes advantage of the setuid+root permission scheme implemented in the Unix kernel to allow granularly granting root access to non-root users.
But any program can be setuid and/or setgid to any user/group and it will then run as that effective user/group by any user with permission to execute that program.
There are handful of programs that are setuid root because they need to do things like open raw sockets that non-root users can't do, ping being the canonical example. Finding buffer overflows in these programs has been a source of privilege escalation security bugs.