Got error while opening root access in terminal

Just as an aside, never use su just like that unless you really know what you’re doing.

Always use… :arrow_down:

su -

… or… :arrow_down:

su -l root

… or… :arrow_down:

su - root

Rationale: If you use su without the dash, then you will be running a root shell but with the environment of the invoking user. This means that you may accidentally overwrite files in your home directory and cause them to become root-owned.

5 Likes