Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

180
Visualizações
copying linux device files through rsync-daemon fails

I can copy linux device files without any error this way:

rsync --recursive --links --perms --times --group --owner --devices --specials --xattrs --acls --stats /path/to/dev root@MACHINE:/path/to/bkps/

but I get a lot of errors of the kind

skipping non-regular file "dev/audio"

when I do it like this:

rsync --recursive --links --perms --times --group --owner --devices --specials --xattrs --acls --stats /path/to/dev  rsync://root@MACHINE/MODULE/

where rsync on MACHINE is running in daemon-mode and its rsyncd.conf contains the following configs:

lock file = /var/run/rsync.lock
pid file = /var/run/rsyncd.pid
log file = /var/log/rsyncd.log
strict modes = true
uid = UID_TO_SET
gid = GID_TO_SET
read only = no
list = yes

[MODULE]
path = /path/to/bkps/

The only difference in the above commandlines is the destination path:

root@MACHINE:/path/to/bkps/

vs.

rsync://root@MACHINE/MODULE/

Can anybody help me solve this problem? Thanks

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

The daemon and module must be uid root for --owner or --devices to work. It's not clear from your rsyncd.conf what the value of uid and gid are. Just because your user is named root doesn't mean the daemon or module are running with root privileges.

Additionally, you can replace the following args:

--recursive --links --perms --times --group --owner --devices --specials

with -a or --archive, which is an alias for all of those.

over 4 years ago · Santiago Trujillo Relatório

0

Thanks to Matt for his input, and after some more manual-reading and testing I could solve the problem:

  • The UID and GID directives in rsyncd.conf specified unprivileged, "normal" users/groups indeed, because I thought these directives are to set the user/group of the copied data

  • And as the rsync-daemon is started by the system on start-up, I thought it was running as root anyway

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda