Score:0

User directory does not exist when logging in via ssh to a Synology NAS

cn flag

On a Synology NAS with DSM 7.0 I have created through the Graphical UI a dedicated admin user (as recommended in Synology's setup procedure), then I have enabled ssh login and now I can ssh into the Synology. So far so good. However when logging in via ssh I get a strange message before the prompt appears:

Could not chdir to home directory /var/services/homes/<my-admin-user>: No such file or directory

Why's this happening? Is the DSM 7 operation system of my NAS not properly configured?

And how do I fix it? Do I just create the user's home directory?

Additional info

The path /var/services/homes exists, but it is a symlink to /volume1/@fake_home_link which does not exist.

Score:1
cn flag

Go to "Control Panel > User & Group > Advanced > User Home" and check "Enable user home service" before persisting it with "Apply".

Score:1
cn flag

This error message indicates that the system is unable to change to the specified home directory for the specified user, because the directory does not exist. It could be that the folder /var/services/homes/<my-admin-user> is missing or the user might not have permission to access the directory. It could also be that the directory is spelled incorrectly.

You should check if the directory path exists and if the user have the permission to access it, if not you can create the directory and give the user permission to access it.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.