Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I've mounted my DSM (from my Gentoo server) via Samba (stock) and NFS (using fun_plug). In both cases, when I try to rsync from my Gentoo server to the DSM-G600, it says chown ....Operation not permitted. Then I tried to cp -p and that failed with some permission problem too.
Is there any way to get permissions to be retained when backing up to the DSM?
Thanks!
Last edited by ReD-BaRoN (2009-05-03 06:11:12)
Offline
Even before rsync, let's start simple:
I have the DSM-G600 mounted via NFS (using the instructions in the forum).
flagg / # mount
<snip>
192.168.1.4:/mnt/HD_a2 on /NAS type nfs (rw,nolock,addr=192.168.1.4)
I have read/write access on the mount:
flagg NAS # ls -lt
total 22252
drwx------ 3 nobody nobody 4096 May 3 00:01 snapshots
drwxrwxrwx 3 500 500 4096 May 2 23:27 usr
drwxr-xr-x 3 root root 4096 May 2 23:17 var
-rwxrwxrwx 1 500 500 2052 May 2 22:28 fun_plug
-rwxrwxrwx 1 500 500 930768 May 2 22:04 busybox2
-rwxrwxrwx 1 500 500 24298 May 2 22:04 unix.o
drwxrwxrwx 6 500 500 4096 May 2 11:49 nfs-utils-1.0.10-portmap5-nfsd
lrwxrwxrwx 1 root root 18 May 2 10:41 ash -> /mnt/HD_a2/busybox
-rwxrwxrwx 1 501 501 133630 Oct 13 2006 sed
-rwxrwxrwx 1 501 501 515228 Aug 18 2006 busybox
flagg NAS # touch foo
flagg NAS # ls -lt
total 22252
-rw-r--r-- 1 nobody nobody 0 May 4 2009 foo
drwx------ 3 nobody nobody 4096 May 3 00:01 snapshots
drwxrwxrwx 3 500 500 4096 May 2 23:27 usr
drwxr-xr-x 3 root root 4096 May 2 23:17 var
-rwxrwxrwx 1 500 500 2052 May 2 22:28 fun_plug
-rwxrwxrwx 1 500 500 930768 May 2 22:04 busybox2
-rwxrwxrwx 1 500 500 24298 May 2 22:04 unix.o
drwxrwxrwx 6 500 500 4096 May 2 11:49 nfs-utils-1.0.10-portmap5-nfsd
lrwxrwxrwx 1 root root 18 May 2 10:41 ash -> /mnt/HD_a2/busybox
-rwxrwxrwx 1 501 501 133630 Oct 13 2006 sed
-rwxrwxrwx 1 501 501 515228 Aug 18 2006 busybox
Unfortunately, I can't change the permissions on the file I just created:
flagg NAS # chown root:root foo
chown: changing ownership of `foo': Operation not permitted
Not sure what's going on here, but this doesn't work when using the DSM embedded Samba share either.
Offline
OK, if you look at the owner/group of the file I just created (foo), it's nobody,nobody. That probably has something to do with it. I am logged in to the server as root, so it must have something to do with the uid/gid that it's mounting as. Not sure how to fix that.
Any ideas appreciated.
Thanks!
Last edited by ReD-BaRoN (2009-05-05 05:06:42)
Offline
I haven't used nfs much, but I know that nfs on DSM-G600 uses unix.o, which is not working very well, at least with some other programs which also makes use of it.
You could try to use plain rsyncd instead of nfs and rsync.
Offline
Search doesn't turn up much for running rsyncd on the DSM-G600. Is chrooting to Gentoo/Debian the only way to do that?
Offline
You could also setup a cross-compiler and compile rsyncd. Beside that chrooting or hdd-boot is other options for rsyncd.
Offline