Re: using a set uid root appkit program to gain root
Michael <[email protected]>
| Newsgroups | gmane.comp.macosx.general |
|---|---|
| Message-ID | <[email protected]> |
On 2018-01-22, at 2:28 PM, Karl Kuehn <[email protected]> wrote: > `setuid` has really been restricted, and I don't think you could do this though AppleScript at this point (requires app signatures). I am running on 10.9.5. So some security holes might sill be around. > However, if what you are actually trying to accomplish is doable via a command line, you could set it up in the `/etc/sudoers` file that whomever needs to run this could run that specific command (and nothing else) with `sudo COMMAND` without needing a passoword. The issue is that I have managed to lose my password. I can probably (I hope) use a recovery boot to clear he password, and in worst-case, I can do a full re-install and time machine backup. I want to avoid that if possible. If nothing else, being able to set my password to something known is sufficient.