This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Permissions problems

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
gabier
Starter
Starter
Posts: 23
Joined: 08 Dec 2014 16:41
Status: Offline

Permissions problems

Post by gabier »

Hello!
This is probably a permission problem, but I can't get the solution.
I am designing a NAS4Free backup server and I am testing rsync from a windows 7 client.
The script is the following

Code: Select all

rsync -avz --delete /cygdrive/F/Backup/D83_2012-Jan/  ggadmin@nas4free:/mnt/RAID1A/ggadmin/Backup/D83_2012-Jan/ >>/home/ggadmin/gglog.txt 2>>/home/ggadmin/gglog.txt
rsync prompts me for the ggadmin password and proceeds but it fails

Code: Select all

sending incremental file list
rsync: failed to set times on "/mnt/RAID1A/ggadmin/Backup/D83_2012-Jan/.": Operation not permitted (1)
./
rsync: recv_generator: mkdir "/mnt/RAID1A/ggadmin/Backup/D83_2012-Jan/gabriel" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
gabriel/
I have set all directories (RAID1A/ggadmin/Backup) to belong to ggadmin and to be writable (776) by ggadmin.

It must be simple but I do can't see it. Does somebody can ?

:) gabier
Dell 8300 computer with NAS4Free 10.2.0.2- RAID1 2TB
Dell 8900 Desktop (Windows 10) Cygwin 2.3.0

gabier
Starter
Starter
Posts: 23
Joined: 08 Dec 2014 16:41
Status: Offline

Re: Permissions problems

Post by gabier »

Sorry, it was a false alarm, or at least a problem which was not explained properly.
The file transfer works OK with SCP and the same directories, so it is not a permission problem but an rsync problem. I am investigating further; At the moment I suspect that, because the rsync command is sent from the client side, that is by Cygwin ssh under Windows 7. There is a discrepancy of the rsync versions on the server side (last version included in NAS4Free) and on the client side (Cygwin has not been updated for years.)
I let you know the conclusion
:) gabier
Dell 8300 computer with NAS4Free 10.2.0.2- RAID1 2TB
Dell 8900 Desktop (Windows 10) Cygwin 2.3.0

serverguy
Starter
Starter
Posts: 22
Joined: 25 Oct 2014 13:18
Contact:
Status: Offline

Re: Permissions problems

Post by serverguy »

I have 2 users on a PC. One is Mikey, the other is Testpriv. That user has only a group of TestPriv. Mikey has other groups and maybe one of them allows access but does not have the TestPriv group. I setup two folders on the N4F box. Permissions displayed below. Both of the users can see the folders, files and content of files of the other. I did not expect this to be possible with the permissions as setup with SSH. Can someone please tell me why these folders and files are not isolated and are only viewable only by the owning user?

Mike Morrow

Code: Select all

n4f: homes # ls -R -l
total 4
drwxrwxr-x  3 Mikey     mikey     5 Jan  3 00:19 Mikey
drwxrwxr-x  2 Testpriv  TestPriv  3 Jan  2 23:57 Testpriv

./Mikey:
total 5
drwxrwxr-x  2 Mikey  mikey   2 Jan  2 23:51 This is it
-rwxrw-r--  1 Mikey  mikey   6 Jan  2 23:57 asdf.txt
-rwxrw-r--  1 Mikey  mikey  10 Jan  3 00:19 qwer.txt

./Mikey/This is it:
total 0

./Testpriv:
total 2
-rw-rw-r--  1 Testpriv  TestPriv  16 Jan  3 00:13 Can You See Me.txt

gabier
Starter
Starter
Posts: 23
Joined: 08 Dec 2014 16:41
Status: Offline

Re: Permissions problems

Post by gabier »

Hello Mike,
Your problem does not seem to have much to do with RSYNC nor with my problem, and I am not a specialist but from the ls output I read that your directories are readable by "others". If you want them "isolated" from outside the group IMHO you should have 770 permission and not 775.

I will open a new thread for my RSYNC problem because it turns out that it is not a permission problem.

:) gabier
Dell 8300 computer with NAS4Free 10.2.0.2- RAID1 2TB
Dell 8900 Desktop (Windows 10) Cygwin 2.3.0

serverguy
Starter
Starter
Posts: 22
Joined: 25 Oct 2014 13:18
Contact:
Status: Offline

Re: Permissions problems

Post by serverguy »

Yeah, I think you hit it. I set the owners but forgot about the permissions. I have to get more comfortable and make sure about inherited permissions. Thanks for the heads up. You got it right first time.

I need to read on inheritance permissions so this will be automatic in the future. I manually set these two directories to -R 770 and, right away, it locked out the other user. I still forget stuff on this new (to me) *nix stuff. Gotta get my little helper file with useful stuff till I get it all in my head.

Thanks again,
Mike

Post Reply

Return to “RSYNC”