Почему для `rsync` не требуются привилегии суперпользователя?

Есть три графических процессора, которые называются "GT 730" . Вероятно, у вас есть вариант, который поддерживает только два монитора одновременно (несмотря на наличие трех разъемов).

Другая возможность, которую я не смог подтвердить, заключается в том, что ваша карта имеет только один RAMDAC и, следовательно, может одновременно управлять только одним аналоговым монитором. Однако это не должно быть проблемой, поскольку HDMI не передает аналоговые сигналы, поэтому преобразователь HDMI-VGA должен иметь собственный ЦАП.

-1
15.05.2018, 07:37
1 ответ

Debido a que no es un demonio, funciona siempre que tenga permisos para leer (origen )y escribir (destino )como usted indicó, y (de alguna manera )le permite preservar la propiedad/atributos en la copia, incluso si no es root o el usuario en la máquina de destino (lea sobre --super y --falso -super, para que esto funcione, el destino debe ser compatible con las ACL ).

De la misma página de manual de rsync:

 --fake-super
      When this option is enabled, rsync simulates super-user  activi‐
      ties  by  saving/restoring the privileged attributes via special
      extended attributes that are attached to each file (as  needed).
      This  includes  the  file’s  owner  and  group (if it is not the
      default), the file’s device info (device  &  special  files  are
      created  as  empty  text files), and any permission bits that we
      won’t allow to be set on the real file (e.g.  the real file gets
      u-s,g-s,o-t  for  safety) or that would limit the owner’s access
      (since the real super-user can always access/change a file,  the
      files  we  create can always be accessed/changed by the creating
      user).  This option also handles ACLs (if --acls was  specified)
      and non-user extended attributes (if --xattrs was specified).

      This  is  a  good way to backup data without using a super-user,
      and to store ACLs from incompatible systems.

Editar y aclarar:"No requiere privilegios de súper -usuario" no significa que no sea útil ser súper -usuario. Simplemente significa que funcionará (principalmente )de todos modos.

4
28.01.2020, 05:07

Теги

Похожие вопросы