DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-05-03 06:09:57

ReD-BaRoN
New member
Registered: 2009-05-02
Posts: 4

Keeping file permissions?

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

 

#2 2009-05-04 09:37:01

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Keeping file permissions?

Well, you can post your rsync method you are trying to use.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#3 2009-05-05 04:40:54

ReD-BaRoN
New member
Registered: 2009-05-02
Posts: 4

Re: Keeping file permissions?

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

 

#4 2009-05-05 05:06:26

ReD-BaRoN
New member
Registered: 2009-05-02
Posts: 4

Re: Keeping file permissions?

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

 

#5 2009-05-05 09:33:06

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Keeping file permissions?

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.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#6 2009-05-06 05:25:44

ReD-BaRoN
New member
Registered: 2009-05-02
Posts: 4

Re: Keeping file permissions?

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

 

#7 2009-05-06 16:26:48

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Keeping file permissions?

You could also setup a cross-compiler and compile rsyncd. Beside that chrooting or hdd-boot is other options for rsyncd.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB