Report this

What is the reason for this report?

Can't modify files after adding new user

Posted on May 13, 2014

Hi

I followed your guide, did all the steps

https://www.digitalocean.com/community/articles/initial-server-setup-with-centos-6

But when I edit files in my root directory I get> permission denied

I’m running CentOS 6 with Zpanel. Anyway I can revert back to normal root access.



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!

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.

Did you follow step four: <br> <br>https://www.digitalocean.com/community/articles/initial-server-setup-with-centos-6#StepFour—RootPrivileges <br> <br>If so, your user should be able to get root privileges by using “sudo” Simply prepend it to the command you want to run. For instance, if you wanted to edit the file “/etc/hosts” you’d use: <br> <br><pre> <br>sudo nano /etc/hosts <br></pre>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.