× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: ReadyNAS OS Rsync job permissions incorrect

DCA-IT
Aspirant

ReadyNAS OS Rsync job permissions incorrect

We've set up a DR Rsync job to copy data on NAS1 to NAS2. We'd like to have the job running weekly but when the job runs, it copies the data but creates a completely bizzare (and very incorrect) set of NTFS permissions on the NAS2 side. The set of permissions is the same whatever we set as the source; from an entire share to a single folder. The permissions set does not match what is set on NAS1 (source) or the NTFS permissions set on the source(s).

It seems to be a problem with the Rsync job itself or the ReadyNAS OS (6.10.2). Windows copy completes as expected and I've tried using SyncBack to run the job and this also copies correctly.

 

Has anyone else come across such a bizzare problem or have any insight?

 

Thanks in advance.

Message 1 of 21
StephenB
Guru

Re: ReadyNAS OS Rsync job permissions incorrect

Of course there are no NTFS permissions involved (since the NAS doesn't use the NTFS file system).

 

Have you looked at the btrfs file permissions with ssh?

Message 2 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

Hi Stephen, thanks for your response.

 

What are the permissions I'm seeing when I browse to the shared folder (or any of the sub-folders) in Windows Explorer and view Properties > Security > Advanced? These don't match anything I can see when I connect to the NAS via the web console and look at the permissions set there in Network Access or File Access.

 

I cannot seem to connect to the NAS using SSH. When I enter the credentials in Putty, the window simply vanishes. SSH is deinately enabled on the NAS though...

Message 3 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

I've managed to connect Putty using SSH now. What commands would I use to view the permissions?

 

Message 4 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

I'm trying the command below to browse to the directory I want to check permissions on but when I enter the path, I get an error saying "No such file or directory exists".

cd /<share name>/

The directory does very much exist. I can browse to it and open files. For some reason, the command line will not see it.

 

Message 5 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

Sussed it...

 

btrfs permissions on the subject share are:

drwxrwx---+ 1 administrator domain admins 172 Oct 30 07:56 <directory>

Sub-folders are the same.

 

Message 6 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

I've attached a screenshot of what I can see in Windows Explorer. The highlighted yellow items should not be there and the two red boxes are duplicates.

 

Message 7 of 21
StephenB
Guru

Re: ReadyNAS OS Rsync job permissions incorrect


@DCA-IT wrote:

 

btrfs permissions on the subject share are:

drwxrwx---+ 1 administrator domain admins 172 Oct 30 07:56 <directory>

Sub-folders are the same.

 


Is the system using Active Directory?

If you look on the "options" tab of the backup job, is the option to change ownership of files in the backup destination set?

 

When you look at the file access tab in the share settings are you seeing "administrator" as the folder owner, and "domain admins" as the folder group?  What are you seeing on the file access tab for the source share?

 

You should also check if the UID for administrator and GID for "domain admins" on the destination NAS matches the UID/GID for the folder owner and folder group on the source.

Message 8 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

  1. Yes, the NAS is connected to an AD domain.
  2. In the Options tab of the Rsync job settings, both tick box options are unticked and greyed out.
  3. Administrator and Domain Admins are set as Folder Owner and Folder Group respectively for both source and destination NASs.
  4. Where would I find the UID and GID?
Message 9 of 21
Sandshark
Sensei

Re: ReadyNAS OS Rsync job permissions incorrect

UIDs and GIDs are listed on the Accounts tab.

Message 10 of 21
StephenB
Guru

Re: ReadyNAS OS Rsync job permissions incorrect

Are the file access settings on both the source and destination shares the same?

Message 11 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

I can only see Name, Email and Primary Group in Accounts > Users...

 

Message 12 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

All File Access settings were identical on Friday. This morning however, I've found a user account and two groups not there previously in the File Access list. No-one has put them there and they were 100% not there on Friday.

Also, when looking in Windows Explorer at the share, the Inheritance is enabled. I had disabled this on Friday too.

The 'source' NAS seems to be unaffected.

Message 13 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

Something else I have noticed: On the source NAS in File Access > Default Access, we have the "Specify permission when new file/folder is created" ticked. On the destination NAS, if I tick this and click apply, it unticks itself.

 

Message 14 of 21
StephenB
Guru

Re: ReadyNAS OS Rsync job permissions incorrect


@DCA-IT wrote:

On the destination NAS, if I tick this and click apply, it unticks itself.

 


Something very strange seems to be going on with the destination NAS.

 

Have you looked at the fullness of the OS partition? (that can have weird symptoms, including configuration changes that "don't take").

 

One option would be to do a factory default on it (which wipes all data and settings), and start over.

Message 15 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

Yes, something is happening which clearly should not be.

How would I check the OS partition?

Message 16 of 21
StephenB
Guru

Re: ReadyNAS OS Rsync job permissions incorrect


@DCA-IT wrote:

Yes, something is happening which clearly should not be.

How would I check the OS partition?


On ARM-based NAS you can use

# cd //
# df . -h
# df . -i

On x86 NAS (OS 6) you also need

# btrfs fi show /
# btrfs fi df /

because the OS partition uses BTRFS.

 

The "used" space in the btrfs indicates allocated space (some of which is actually free).  It can be hard to interpret, so perhaps post what you see here.

 

Another option is to just do a factory reset, and start clean.  You'd have to rebuild the NAS and you'd lose the data on it.

 

 

Message 17 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

Thanks Stephen, I'll give the commands a shot.

 

Rebuilding from scratch would be a royal pain in the proverbial...

Message 18 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

Looks like there's space on the OS partition...

Welcome to ReadyNASOS 6.10.2

root@MPNAS04:~# btrfs fi show /
Label: '0a451648:root'  uuid: b64e3dec-25c7-4f78-bad2-5cfc68702688
        Total devices 1 FS bytes used 1.08GiB
        devid    1 size 4.00GiB used 2.45GiB path /dev/md0

root@MPNAS04:~# btrfs fi df /
Data, single: total=2.04GiB, used=1.07GiB
System, DUP: total=8.00MiB, used=16.00KiB
Metadata, DUP: total=204.56MiB, used=11.92MiB
GlobalReserve, single: total=16.00MiB, used=0.00B

 

Message 19 of 21
StephenB
Guru

Re: ReadyNAS OS Rsync job permissions incorrect


@DCA-IT wrote:

Looks like there's space on the OS partition...


Ok.  That makes it unlikely that the configuration settings just aren't taking.

 

One option is to use paid support (my.netgear.com).

 

I'm not thinking of any good avenues to explore, but if you have enough disk space you could try creating a new share, and moving the files into it.  Then delete the old share, and rename the new to match it. 

Message 20 of 21
DCA-IT
Aspirant

Re: ReadyNAS OS Rsync job permissions incorrect

Yes, I'm already trying the new share option. Permissions seem to be okay for now so fingers crossed!

 

Thanks for your time and suggestions.

 

Message 21 of 21
Top Contributors
Discussion stats
  • 20 replies
  • 3252 views
  • 0 kudos
  • 3 in conversation
Announcements