I found out about a luckyBackup - back-up & sync program recently, tried it and I don’t understand how I lived all these years without it. It’s the best and easiest back up program I have seen so far (maybe there are others, I haven’t researched this area yet), it does back-ups in no time without problems (it only writes file differences that’s why it’s so quick).
But it has problems with syncing with my NAS. It syncs well with my desktop drives/folders, but it says it fails to sync to NAS due to permissions, something like “rsync chgrp operation not permitted(1) errors”.
I have a Seagate BlackArmor NAS 110 running NFS which is automounted on my desktop with autofs. The NAS has been set up with correct UID and GID which I belong to, and with read/write permissions for shared folders. I mean I can read/write to/from the NAS in Dolphin without problems, but the sync from luckyBackup fails for some reason, luckyBackup backup works fine though.
I’ve checked the NAS file/folder properties, they’re all none/nobody or something like that even though I specifically set them to belong to the UID & GID and I can’t change that to anything else.
I’ve unselected ‘preserve permissions’ and ‘time’ but it stil fails to sync with the NAS.
Does anyone know what can be a problem? Thank you.
I just tried it. I agree very nice backup program with a simple user interface. Does not seem to like NFS file system. Of course this is the rsync backend that is choking.
Did not like setting the destination as user (crashed) but accepted the destination ok if run as root.
the rsync problem may have to do with the fact that NFS does not support permissions maybe??? Anyone know?
It’s hard to say without knowing how the filesystem and exports on your NAS box are arranged by the vendor. It could be that it maps all registered uids to nobody so that any NFS user can access any file. Could you not tell rsync not to worry about preserving owner and group?
I have (in luckyBackup) and it keeps reverting back to preserving owner, group and time. maybe it’s luckyBackup bug? this only happens with the sync option. with the backup option if I untick the preserving owner, group and time, it keeps them off.
I’ve just realised the folder on NAS has been created when I was logged in as admin. this would probably explain why it was made as ‘nobody’ (for security?). I have to try to make a folder having logged in as a user and then to see if the folder has got the user owner and group permissions belonging to the user.
There is a reason why root is mapped to nobody on NFS shares unless specifically overriden by no_root_squash at the server end. Consider this scenario:
A share is exported by a NFS server, call it Victim
User has normal account on Victim
User has root account on a machine, a NFS client, call it Evil
On Evil, user creates a setuid root program, say bash, on the share that Victim exports
User logins to Victim and runs the setuid root bash
Voila, all your files on Victim are belong to us, bwahahahaha
I knew all of that, I’m running an NFS server on my desktop. But for some reason I had a brain freeze and totally forgot/ignored that the NAS is running an embedded Linux and the same rules apply. I thought of it more like of an external storage rather than a Linux file server. wakey-wakey…
I’ve just logged in NAS and it turns out a user can’t create folders. ****!
PS. Why is “d a m n” a forbidden word here? It’s not a swear word as far as I know and the forum does not associate itself with any religious cult, does it?