This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

rsyncd.secrets

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
gps4net
NewUser
NewUser
Posts: 4
Joined: 18 Sep 2016 21:51
Status: Offline

rsyncd.secrets

Post by gps4net »

Using the embedded version, Is there a way to store rsyncd.secrets anywhere without losing it upon reboot?

User avatar
tony1
Moderator
Moderator
Posts: 169
Joined: 14 Jul 2016 19:04
Status: Offline

Re: rsyncd.secrets

Post by tony1 »

I don't use rsyncd but you should be able to put it on a dataset or directory.
in "Auxiliary parameters" try something like "secrets file = /mnt/tank/some-dataset or directory/rsyncd.secrets
rsyncd.secrets possibly needs to have special or restricted permissions.
take care

gps4net
NewUser
NewUser
Posts: 4
Joined: 18 Sep 2016 21:51
Status: Offline

Re: rsyncd.secrets

Post by gps4net »

What about the client? There is no way I could specify a password option to access a module, unless maybe using the --password-file option.

I've also tried to create a cronjob instead, with the environment variable RSYNC_PASSWORD= and while it runs fine with "Run Now" option (thus blocking the UI until the transfer finishes) it doesn't get executed at the particular time it's supposed to. It doesn't run at all.

User avatar
tony1
Moderator
Moderator
Posts: 169
Joined: 14 Jul 2016 19:04
Status: Offline

Re: rsyncd.secrets

Post by tony1 »

I think you use --password-file=FILE in Extra options of the client? Services|Rsync|Client
I don't used rsyncd but it should work.

https://rsync.samba.org/ftp/rsync/rsync.html

piwwo
Starter
Starter
Posts: 27
Joined: 21 Mar 2013 15:30
Status: Offline

Re: rsyncd.secrets

Post by piwwo »

I stumbled over the same problem. I save it either in the /cf folder (after remounting it rw), which has the caveat that it's rather quirky to edit that file each time you add a new user or save it on the storage drive, which is less quirky but still forces you to edit that file via ssh on the NAS. The GUI really needs an option for that so it gets stored in the config.xml together with the module. Is a feature request valid here?

User avatar
tony1
Moderator
Moderator
Posts: 169
Joined: 14 Jul 2016 19:04
Status: Offline

Re: rsyncd.secrets

Post by tony1 »

you need to look at the man pages real close.
like I have said before, I don't use it but the --config=FILE option looks like it could be nice!

piwwo
Starter
Starter
Posts: 27
Joined: 21 Mar 2013 15:30
Status: Offline

Re: rsyncd.secrets

Post by piwwo »

Eventually I went back to rsync over ssh with a ssh-key.

Post Reply

Return to “RSYNC”