mobrien118
Dabbler
- Joined
- Jun 22, 2020
- Messages
- 25
I have an old TrueNAS Scale system that has been complaining about logging in as root. I appreciate the security objective and want to make use of a secondary admin.
I noticed that, on the upgraded system, there is already a "/home/admin/" path, even before the user exists, and its ownership is set to "950:950", which coincides with another system I have where "admin" was created upon install.
So, I decided to try to create an "admin" user on the "old" system identical to the "admin" on the "new", however, it won't let me set the user home to the already existing "/home/admin" giving the error:
I tried using "usermod" and editing "/etc/passwd" and "/etc/passwd-" but the changes don't stick...
I get that this isn't a huge deal, but I would like for it to be consistent - any way to "hack" it?
I noticed that, on the upgraded system, there is already a "/home/admin/" path, even before the user exists, and its ownership is set to "950:950", which coincides with another system I have where "admin" was created upon install.
So, I decided to try to create an "admin" user on the "old" system identical to the "admin" on the "new", however, it won't let me set the user home to the already existing "/home/admin" giving the error:
Code:
"Home Directory" must begin with /mnt/ or set to /nonexistent.
I tried using "usermod" and editing "/etc/passwd" and "/etc/passwd-" but the changes don't stick...
I get that this isn't a huge deal, but I would like for it to be consistent - any way to "hack" it?