Mailing the story:

How to edit a system file with sudoedit preserving the invoking user environment

  • linuxconfig.org; By Egidio Docile (Posted by on CST)
  • Story Type: Tutorial; Groups: Linux
On Linux and other Unix-based operating systems, sudo is used to run a program with the privileges of another user, often root. When we need to modify a file which requires administrative privileges to be edited, if we launch our favorite text editor directly with sudo, it will run without the customization and settings we use when we invoke it normally, since the environment of the invoking user is not preserved.
What is your name?

What is your E-Mail address?

What is the email address of the recipient?

Add a special note from yourself?