Skip to content

Instantly share code, notes, and snippets.

@fdemmer
Last active October 22, 2023 12:09
Show Gist options
  • Save fdemmer/723bd4343815aeb232da0420c54d9642 to your computer and use it in GitHub Desktop.
Save fdemmer/723bd4343815aeb232da0420c54d9642 to your computer and use it in GitHub Desktop.
Random notes about my Synology NAS

user has no home: Could not chdir to home directory /var/services/homes/admin: No such file or directory

Enable the "user home service" in Control Panel - User - Advanced (at the very bottom)

rsync does not work: Permission denied, please try again.

Trying to sync files to the NAS like this:

$ rsync -av ./<src-dir>/ admin@<dest-ip>:/<dest-dir>/

results in a "Permission denied, please try again." error.

Running the command with --verbose shows the ssh command used:

opening connection using: ssh -l admin <dest-ip> rsync --server -vvlogDtpre.isfC . /<dest-dir>/

If just running ssh -l admin <dest-ip> rsync does not show the help text, it's not a problem with the permissions at the destination dir.

Try the following:

  1. remove setUID root on the destination: $ sudo chmod u-s /bin/rsync

  2. give rsync the full path to the rsync command at destination, eg:

    $ rsync -av --rsync-path=/bin/rsync ./<dest-dir>/ admin@<dest-ip>:/<dest-dir>/
    

I can't remember that!

Create shell aliases in your user's home in a .profile file, eg:

alias rsync="rsync -av --rsync-path=/bin/rsync --progress"
alias docker="sudo docker"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment