Score:0

Rsync with a secondary user

de flag
Yaz

I need to give the ability for a secondary user to write files to a specific folder in the home directory of the primary user.

I created a user test without a home folder Created a secondary group, put the primary user and test in that group, gave ownership of the folder /home/{primary user}/{folder} to the group I created

But when I execute this: rsync -e 'ssh' /path/to/local/file test@{ip}:/home/{primary user}/{folder}

It shows this error

Could not chdir to home directory /home/test: No such file or directory
rsync: [Receiver] ERROR: cannot stat destination "/home/{primary user}/{folder}": Permission denied (13)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(765) [Receiver=3.2.3]

What can I do to achieve this?

sudodus avatar
jp flag
I think that user needs access to the whole chain of directories in the path to the target directory.
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.