NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Korack
Mar 27, 2021Aspirant
How to recreate user home share?
Somehow I deleted all the users home directories and I cannot recreate them via command line. I have already shares with the users names for example \\ReadyNAS214\Bob which is located at /data/Bob b...
StephenB
Mar 27, 2021Guru - Experienced User
Korack wrote:
Somehow I deleted all the users home directories and I cannot recreate them via command line.
I have already shares with the users names for example \\ReadyNAS214\Bob which is located at /data/Bob but /home/bob does not exist.
No idea how you deleted them.
But as far as recreating them goes: You can't have two shares with the same name (and the home folder is a share, just locked down). SMB is case-insensitive, so Bob and bob are treated as the same name.
First, delete the Bob share.
Then try accessing the NAS with Bob's user credentials via SMB - e.g., using File Explorer (Windows) or Finder (MacOS). Alternatively, log in with ssh (as root) and enter rnutil mkhomedir_helper Bob . Match the case of the actual user account (e.g., enter bob if the username is lowercase).
Korack
Mar 27, 2021Aspirant
Thanks for the reply. I deleted the share Bob. Tried logging in via SMB & ssh as "bob", It still does not create /home/bob.
Your command was helpful but did not actually fix it.
I get the following error:
# rnutil mkhomedir_helper bob
INFO: Checking homedir for user bob
ERROR: /home is on the root fs.
FYI - I deleted the home directories with a bad rsync command. Funny I could delete the directories but not create them.
- StephenBMar 27, 2021Guru - Experienced User
Korack wrote:
I get the following error:
# rnutil mkhomedir_helper bob
INFO: Checking homedir for user bob
ERROR: /home is on the root fs.FYI - I deleted the home directories with a bad rsync command. Funny I could delete the directories but not create them.
Does /data/home exist? I am guessing not, but we should confirm.
/home is a mount point for /data/home - and I think the error message is telling you that /data/home is not mounted on /home.
- KorackMar 27, 2021Aspirant
That does actually appear to be the case. Not sure how to fix on ReadyNAS.
# ls /home
root@READYNAS:/data/homeadmin user1 user2 user3 user4 user5 user6 user7I own 2 ReadyNAS 214. One @ my home and my adult kids home to backup between them. The other is working fine and mounting /home to /data/home. The mount is not done via /etc/fstab.
Not Working:
# cat /etc/fstab
LABEL=50333ce8:data /data btrfs defaults,nodatasum 0 0
Working:# cat /etc/fstab
LABEL=2db97e6f:data /data btrfs defaults,nodatasum 0 0So it appears to be a Netgear method that I cannot find.
Any tools to fix this?- StephenBMar 27, 2021Guru - Experienced User
Have you tried rebooting the NAS?
Maybe delete anything in /home first (as it should be empty, since it is just a mount point).
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!