So, I heard that it's possible to edit root files on Linux but if I trying to save the file I get this message:

They do not have the necessary authorisations to store the file. Please, check whether you have properly given the place, and try it once more.

So, how can I change root user?

  • 1
    Look up sudo. – Brick Dec 20 '18 at 17:38
  • Your question pops up again. Does the answer help you? – Ingo Nov 4 '19 at 10:31
  • Do you mean SD card, as in "secure digital"? CD means "compact disk". – Dmitry Grigoryev Feb 26 at 8:10

To get root access you can prefix the commands with sudo, for example:

rpi ~$ sudo editor /etc/issue

To get permanent root rights for all following commands you can use:

rpi ~$ sudo -Es
root@rpi ~# editor /etc/issue
root@rpi ~# exit
rpi ~$

You should use this mode with care and leave it as soon as possible with exit. Unix isn't made to work interactive as root.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.