Hello experts, I have similar issue to this thread https://forum.howtoforge.com/threads/adding-a-second-sudo-user.91395/ but I did not want to hijack that post. My question is simple I have created a shell user for a specific site (No Jailkit) i did give the user created sudo access but it didnt work as it is showing web18 when i login so i gave the user web18 sudo access but still not able to use npm and node. if i try to sudo npm -v for example it ask for a password and the password created doesn't work. is there a way to work around it?
if you try running 'sudo npm -v' then it's going to ask for the password for the root user, same as if you just run 'sudo' on it's own to actually switch to running the shell as root for an extended period / multiple commands. you need to configure passwordless sudo... https://serverfault.com/questions/160581/how-to-setup-passwordless-sudo-on-linux
actually i gave the example of sudo npm because when i run npm without sudo it says that it is not installed and to sudo install npm. so i was just trying all possibilities