1

Enable passwordless sudo as a specific user

view story
linux-howto

http://askubuntu.com – I have two users on my system: itsadok, my main user, and elasticsearch, a user with a different ulimit for running ElasticSearch. I would like to be able to run stuff as the secondary user without being prompted for password every time. I added the following line to /etc/sudoers: itsadok ALL=(elasticsearch:elasticsearch) NOPASSWD: ALL The way I understand it, this should allow the user itsadok, on any host, to run any command as (user or group) elasticsearch without a password. However, trying something like itsadok@dev001$ sudo -u elasticsearch ls prompts me for a password. Restarti (HowTos)