NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

kevinfff's avatar
Feb 19, 2016

Rysnc or backup to second NAS loses permissions / ACLs

Has anyone noticed that backups from one ReadyNAS to another (both members of Active Directory) screw up the permissions?

 

We have a production unit RN3220 which hosts our main file sharing system and users' "my documents" folders.  Previously these shares were backed up weekly to a USB attached disk, and daily snapshots were made however, following a scare following the firmware upgrade to 6.4.0, we invested in a second ReadyNAS unit (4220S) and I created rsync jobs to copy the files and folders in each of the shares, having first created the same shares with the same permissions on the new NAS.

 

After another f/w scare (the upgrade to 6.4.2 worked fine on the test systems, but "hung" the production unit) I intended o allow users access to the new NAS unit, as the shares and filepaths would be the same, except for the server name and IP address, however when I checked I saw that the file permissions were screwed - new permissions had been granted and some existing permissions dropped.  Netgear have confirmed this is a known issue.  I have TBs of files - to fix the ACLs would take hours - even with the editor.  

 

If anyone has a solution for this please advise!

1 Reply

Replies have been turned off for this discussion
  • siigna's avatar
    siigna
    NETGEAR Employee Retired

    ReadyNAS maps Windows SIDs to local UID/GIDs (winbind with a local idmap table).  Unfortunately this means that across different ReadyNAS you will have different SID->U/GID mappings, leading to permissions issues.

     

    For more information see: https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/idmapper.html (Winbind/NSS with the default local IDMAP table)

     

    Exporting the mapping from your source to your destination should resolve the permission issue.  You'll need to do it from SSH, an option to do this in the UI is in the works (but hasn't made release yet):

    http://ram.kossboss.com/exporting-importing-user-id-maps-samba/

     

    If you have any new users login to the source NAS after the export/import you'll need to do it again to update the destination NAS with the new mapping.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More