Fixing "go not root-owned" Error on Ubuntu 16.04
A user encountered a peculiar issue while attempting to test their Go installation, receiving a "go not root-owned" prompt with values "1000:0." Despite installing Go in the designated "/usr/local" folder and configuring their path, the problem persisted.
Diagnosis and Solution
The error message points to an incorrect ownership of the root directory ("/") on the system. This indicates a compromised security configuration where regular users can alter critical system files. The user has likely modified this ownership in the past.
To rectify this issue, change the ownership of the root directory back to "root":
<code class="sh">sudo chown root /</code>
It's important to avoid assigning elevated privileges such as root ownership to regular users. Instead, employ the sudo mechanism to grant limited system access when necessary.
The above is the detailed content of Why Am I Getting the \'go not root-owned\' Error on Ubuntu 16.04?. For more information, please follow other related articles on the PHP Chinese website!