I'm trying to execute traceroute -d
being authenticated as a "standard" user with sudo
privileges. However if I run sudo traceroute -d
it will be execute by the root
user so I'm wondering how can I execute it as the standard user.
I've tried several ways to make the user basically a super user (aka root) but without success.
The only thing that worked was to change the uid and group id to 0 on /etc/passwd but that changes the user "identity" to "root". E.g. if I run whoami I get "root" instead the "standard" user name.
The reason why i need this is that I have some networking routing based on the --uid-owner and now I'm trying to debug it but it doesn't make sense to run with sudo b/c it would be execute as "root" user which has other routings.
tracepath
?tracepath
doesn't needroot
.