i'm configuring a server for some bioinfo analysis on Centos7 and i installed rundeck. Rundeck seems to launch scripts as its own account name and i decided to use the sudo bypass to make it access my scripts.
using visudo i can make sudo with rundeck change to root having some commands without password. As soon as i put the user bioinfo instead of root, the system asks for a password for the same commands.
here is the part of the sudoers file :
root ALL=(ALL) ALL
bioinfo ALL=(ALL) ALL
rundeck ALL=(bioinfo) NOPASSWD:/home/bioinfo/singularity_data/Bionano3.5,/usr/local/bin/singularity,/bin/*
i dont know what's different between root and bioinfo as they have the same rights. Would anyone have an idea on what would make it not working with bioinfo when it works fine with root ?
I tried my configuration running as root
su - rundeck
and then doing a
sudo whoami
if root => root
if bioinfo => ask for password
Thank you
bash -bash-4.2$ which whoami /bin/whoami -bash-4.2$ sudo whoami root
as bioinfobash -bash-4.2$ which whoami /bin/whoami -bash-4.2$ sudo whoami Nous espérons que vous avez reçu de votre administrateur système local les consignes traditionnelles. Généralement, elles se concentrent sur ces trois éléments : #1) Respectez la vie privée des autres. #2) Réfléchissez avant d'utiliser le clavier. #3) De grands pouvoirs confèrent de grandes responsabilités. [sudo] Mot de passe de rundeck :