You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a restricted user (ie. a user that doesn't have full root access via sudo), this requires that "whoami" is explicitly enabled in the sudoers file which is silly when I'm just trying to run something else that is enabled for the user:
if ! sudo -u #{@user} whoami > /dev/null
then echo "You cannot switch to user '#{@user}' using sudo, please check the sudoers file" 1>&2
false
fi
The text was updated successfully, but these errors were encountered:
I was clear five years ago when I advised that we're open to taking a patch, but that we designed it this way for a reason. Times change, and good error messages on ops tooling is important.
The other maintainers and I would be glad to assist with getting a patch to the required standard to be merged if we can maintain our standards.
For a restricted user (ie. a user that doesn't have full root access via sudo), this requires that "whoami" is explicitly enabled in the sudoers file which is silly when I'm just trying to run something else that is enabled for the user:
if ! sudo -u #{@user} whoami > /dev/null
then echo "You cannot switch to user '#{@user}' using sudo, please check the sudoers file" 1>&2
false
fi
The text was updated successfully, but these errors were encountered: