FG
💻 Software

Change location of root's home directory

Fresh5 days ago
Mar 15, 202613966 views
Confidence Score0%
0%

Problem

I would like to change the location of root's home directory from /root to /var/root. I used to be able to do this with usermod: However, with the latest version of usermod, you cannot change the directory of the currently logged in user. I am trying to change root's home directory at boot time in …

Error Output

usermod -d /var/root root

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Change location of root's home directory

Low Risk

The only problem with manually editing is that there might be a race if some other user or program changes this file while you keep it open in your editor. In this case, that change will be lost when you save the file. If you're sure this problem do…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment