NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
rapple
Jul 08, 2020Aspirant
ReadyNAS, RSYNC, Windows ACLs and XigmaNAS
So, I have a new XigmaNAS server and an old ReadyNAS 10TB server (95% full). They are connected and can talk directly over a dedicated link. Sorry but it was much cheaper to build a 50TB server than ...
rapple
Jul 08, 2020Aspirant
Thanks for the reply Sandshark, but I'm not quite sure what you are referring to here when you say Linux. Do you mean ReadyNAS OS? Which system are you talking about?
There's nothing wrong with the ReadyNAS solution as I've been running with it for a number of years. Windows ACL's seem to work fine and transfer fine.
I don't think there's anything wrong with the XigmaNAS setup either, but FreeBSD and ZFS are new to me so there's always scope there for errors.
I think the issue is in the transfer from one box to the other and I'm trying to work out why. It may well be that RSYNC isn't smart enough to do what I need it to do and that Netgear have coded something specific with their Rsync solution (as I said, it works between my Netgear boxes) . It may just be that I need to configure Rsync a bit better or it may be that I need to do something specific on each environment (NAS box). What I'm really after is understanding how it works on each OS or if I'm really, really lucky to find someone that has already done it!
StephenB
Jul 08, 2020Guru - Experienced User
rapple wrote:
and that Netgear have coded something specific with their Rsync solution
It's just linux rsync. I'm not 100% sure of the command line options, but there is nothing they have "coded".
rapple wrote:
All appears to transfer. At the root level of the share I can happily create/edit/delete documents. However at lower level directories I can read but not write anything. or I can't access some directories i.e. permissions aren't being transferred.
File Permissions in linux are linked to the UID/GID used by your account. The UID/GID of the transfered files aren't remapped by rsync. You can see the UID/GID of the files with ls -n
Since you want the XigmaNAS to become the main NAS, then the simplest thing to do is to reset the permissions on the XigmaNAS (for instance with chmod and/or chown,chgrp) and see if that solves your access problem.
Another option is to change your account UID or GID to match the UID or GID of the files..
A third option is create a user account on the RN104 that has the same UID/GID as the account on the XigmaNAS. Then set the share(s) to that user/group, and then re-apply reset the file permissions on the NAS as suggested by Sandshark. Then run rsync again (it should run pretty quickly).
- rappleJul 08, 2020Aspirant
Ah, a light may be dawning here.
So Rsync knows nothing about Windows ACLs stored in extended attributes?
Rsync transfers and preserves the file level UID/GID of the source system, it doesn't use the UID/GID already set on the target and allow usual permission inheritance through masks?
This wouldn't matter on the old NETGEAR NAS'es because I created the 5 user ID's in sequence, so they are the same on both but probably not on the new box.
I wonder if RSYNC understands the ZFS user group and ACLs, probably not... and these are another level of file security at file system level. I did set these as open as I could so that they weren't getting in the way but that may not be what's actually happening.
In either case I guess if the file system permissions aren't correct this may also be getting in the way of me as a user reading teh Windows ACLs through extended attributes.
All of which is not brilliant news to use RSYNC as a xfer mechanism to a backup server where I can simply map into the backups from a Windows client.
I guess I need to do some extended testing on files xferred and look for alternate solutions.
I may try your suggestion of chmod. I was hoping to avoid such but if it works and relatively quickly...
Thanks.
- StephenBJul 08, 2020Guru - Experienced User
rapple wrote:
So Rsync knows nothing about Windows ACLs stored in extended attributes?
Did you use -A (--acls) in your rsync command?
That would preserve Linux ACLs But I still don't think that will remap UID/GID.
- rappleJul 08, 2020Aspirant
Stephen the answer is I don't honestly know because like ReadyNAS, XigmaNAS tries to present a GUI in front of the commands, which 90% of the time works fine. I would imagine it does because there's an ACL flag in there.
It's also not a Linux Box, it's FreeBSD and the filesystem is ZFS and the ACLS are NFS4.
Having got an SSH shell up and running I've been digging into the permissons and the ACL's on the directory tree. The permissions are being created fine in line with the owner and group that will access them but there's clearly something not right in the filesystem ACLs. They are too restrictive for anyone but the owner, which is root.
More investigation required tomorrow with a fresh mind.
One question though, on the Netgear getfacl returns rwx for each user and group so I assume it's POSIX ACLs. Do you happen to know if this is the case? And does it (Netgear) use extended attributes for Windows ACLs? If it does there's a chance I can get these across once I sort out what's going on with the initial ACL config on the FreeBSD box. There's a recent ref to achieving this here: https://access.redhat.com/solutions/3628891
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!