Skip to content

setresuid() Operation not permitted when performing a sudo -iu #1415

@crozone

Description

@crozone

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 error sudo: setresuid() [1000, 1001, 1000] -> [-1, 0, -1]: Operation not permitted.

Workaround: Become root before executing sudo -iu <username>. The easiest method is to run sudo 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions