Posts Tagged ‘sudo’

Linux: setcap

Wednesday, October 22nd, 2025

Some settings to run Linux commands under unprivileged user without sudo:

After these steps you will be able to run tcpdump and sngrep as a non-root user.

man 7 setcap.

sudo without pass

Tuesday, November 26th, 2019

Executing apt as an example. Add to /etc/sudoers

lexus ALL=(root) NOPASSWD:/usr/bin/apt