-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setresuid() Operation not permitted when performing a sudo -iu #1415
Comments
Can't you |
On the other hand, None of this matters much for BoUoW scenarios since root access is pretty standard, but it's a bug regardless. |
Several programs I use in Linux perform actions such as Error Output:
|
Marking this as a bug for tracking. |
Encountered this while building ALFS from Linux from scratch through bash on windows.
|
I have drafted a fix for this - marking as a duplicate of #962. |
On Ubuntu, it's fairly common to switch users using the
sudo -iu <username>
command.Issue: On BoUoW,
sudo -iu <username>
from a non-root user account returns the errorsudo: setresuid() [1000, 1001, 1000] -> [-1, 0, -1]: Operation not permitted
.Workaround: Become root before executing
sudo -iu <username>
. The easiest method is to runsudo sudo -iu <username>
, which runs the second sudo as root.The workaround is acceptable for the time being, however it requires a user to have root access via sudo, whilst
sudo -iu <username>
can allow non-root users to switch to other non-root users directly based on user specific. permissions.The text was updated successfully, but these errors were encountered: