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

Posted by LinuxCareer on Jun 18, 2021 10:16 PM EDT
linuxconfig.org; By Egidio Docile
Mail this story
Print this story

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.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.