Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

183
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda