Question

Root Password Not Working Unable to Log into VPS to give user root right

I am going through this tutorial

https://coderwall.com/p/yz8cha

I keep on getting “permission denied” when I try to ssh into my root ip address.

I am as far in the tutorial to cap deploy:setup

when I do this

I am getting this

judy is not in the sudoers file. This incident will be reported. ** [out :: 192.241.241.204] command finished in 3716ms failed: “sh -c ‘sudo -p ‘\’‘sudo password: ‘\’’ ln -nfs /home/judy/apps/lintong/current/config/nginx.conf /etc/nginx/sites-enabled/lintong’” on 192.241.241.204

I need to ssh into my root vps inorder to give my user ‘judy’ sudo right so I can deploy… I am using the password emailed to me but keep on getting ‘permission denied’.

how do I recover this password to make sure its the same password?

I asked this question on stackoverflow http://stackoverflow.com/questions/18623440/user-is-not-in-the-sudoers-file-this-incident-will-be-reported-cap-deploysetu/18625148?noredirect=1#18625148

and suspects that the visudo section on the tutorial is incorrect?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted

“I needed to add the root user to the AllowUsers line along with the others to be able to ssh into the server as root” <br>I just went through the same process. The root password was accepted using the droplet access panel but not using putty. Was working ok yesterday but not today but at least able to use root again

I needed to add the root user to the AllowUsers line along with the others to be able to ssh into the server as root. Dont know if this is the right way, but it works.