Question

how to give a user full permission the same as root, and disable root!!

  • Posted January 16, 2014

Hi, I have an issue with giving a user full permissions to control the server the same as root. I created a user and gave permissions, but when I turned the use of DNS off I got the user out of editing everything.

I followed this tut here to create a user: https://www.digitalocean.com/community/articles/how-to-add-and-delete-users-on-ubuntu-12-04-and-centos-6

now I’m locked out and can’t use root as well as the user itself.

even through the SFTP the user can’t get in to edit any file.

is there a method on how to add a user and give that user full permissions the same as root.

I searched around the net, but the solutions are not really doing any of the job since they are messy to some level and not accurate.

your comments are welcome!!

Thanks,

Subscribe
Share

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

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.

Which directories do you need to write to?

Thanks @Kamal for the answer. <br> <br>I still need to add sudo in front of command line I type, but that’s not bad. <br> <br>The thing is that I can’t do anything from the SFTP even after following the 4th step in the article provided… am I missing something here??

I found similar question, but not quiet exact thing I was hoping for :https://www.digitalocean.com/community/questions/permissions-sftp-v-wordpress <br> <br>I want the user to have the same privileges as root… <br> <br>any idea???