0
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
as root
as bioinfo
i did as rundeck switch from ALL to bioinfo in the sudoers file – ul.Duc – 2020-02-18T14:14:52.370
bioinfo has the exact same configuration as root root ALL=(ALL) ALL bioinfo ALL=(ALL) ALL and thus, why it wouldn't ask for root's password too ? – ul.Duc – 2020-02-18T14:23:51.230
i did root ALL=(ALL) ALL bioinfo ALL=(ALL) NOPASSWD:ALL rundeck ALL=(bioinfo) NOPASSWD:/home/bioinfo/singularity_data/Bionano3.5,/usr/local/bin/singularity,/bin/* and the result is the same, sudo whoami asks for a password – ul.Duc – 2020-02-18T14:29:25.797
and bioinfo is in the group wheel too as root – ul.Duc – 2020-02-18T14:30:14.927
done, let's go on the next answer ! – ul.Duc – 2020-02-18T14:38:21.383