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-01-20 02:09:22

bomaroast
Member
Registered: 2008-05-30
Posts: 11

Whats wrong with the permissions?

After upgrading to 1.06 I reset my dns to factory default and ever since I just haven't been able to get the permissions right.  I think these symptoms are related to each other.  What the heck is wrong?

When I move a torrent using the mv command in ubuntu I get a strange error.

Code:

john@laptop:~$ mv ~/Downloads/*.torrent /home/john/data/downloads/watch/
mv: preserving times for `/home/john/data/downloads/watch/whatever.torrent': Not a directory
mv: failed to preserve ownership for `/home/john/data/downloads/watch/whatever.torrent': Not a directory
mv: setting permissions for `/home/john/data/downloads/watch/whatever.torrent': Not a directory

I think a similar symptom is an error I get when attempting to save a file using gedit on one of my samba shares.

Code:

Could note save the file /home/john/data/file.txt.
Unexpected error: Not a directory

Here are relevant excepts from config files on my ubuntu laptop.

Code:

/etc/group
john:x:702:

/etc/passwd
john:x:502:502:John Weaver,,,:/home/john:/bin/bash

Here are relevant excepts from config files on my dns-323.

Code:

/ # cat /etc/group
root:x:0:root
500:x:500:admin
501:x:501:nobody
utmp:x:22:
users:x:702:
sshd::33:sshd

/ # cat /etc/passwd
root:.T82eG0Bb/zMQ:0:0:Linux User,,,:/usr/share/ftp_server:/bin/sh
admin:x:500:500:Linux User,,,:/usr/share/ftp_server:/bin/sh
nobody:x:501:501:Linux User,,,:/usr/share/ftp_server:/bin/sh
re:x:502:702:users:/usr/share/ftp_server:/bin/sh
travis:x:503:702:users:/usr/share/ftp_server:/bin/sh
sshd:x:33:33:sshd:/usr/share/ftp_server:/bin/sh
ftp:*:95:95::/usr/share/ftp_server:/bin/sh

The command I use to mount the drives:

Code:

sudo mount -t cifs -o username=re,password=pass //192.168.4.10/data ~/data

The permissions on the remote folder as viewed by the ubuntu laptop.

Code:

john@laptop:~$ ls -l ~/data/downloads
total 0
drwxrwxrwx 2 john john 0 2009-01-18 15:20 finished
drwxrwxrwx 2 john john 0 2009-01-19 17:56 unfinished
drwxrwxrwx 2 john john 0 2009-01-19 17:56 watch
drwxrwxrwx 2 john john 0 2009-01-18 15:46 watch_travis
john@laptop:~$ ls -ln ~/data/downloads
total 0
drwxrwxrwx 2 502 702 0 2009-01-18 15:20 finished
drwxrwxrwx 2 502 702 0 2009-01-19 17:56 unfinished
drwxrwxrwx 2 502 702 0 2009-01-19 17:56 watch
drwxrwxrwx 2 502 702 0 2009-01-18 15:46 watch_travis

Offline

 

#2 2009-01-20 09:37:21

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Whats wrong with the permissions?

Have you tried NFS? For Linux clients, the permission issue is much simpler with NFS.

Offline

 

#3 2009-01-21 07:28:18

bomaroast
Member
Registered: 2008-05-30
Posts: 11

Re: Whats wrong with the permissions?

I updated samba to 3.2.3 from fonz's extra packages and it resolved the problem.  It involved copying my smb.conf to /ffp/etc/samba/ and then adding a script to /ffp/start/ with killall nmbd; killall smbd; /ffp/sbin/nmbd -D; /ffp/sbin/smbd -D.

Now that samba seems to be working as intended will nfs yield any benefit over samba on the dns?  The end result is the same: data shared.

Thanks fonz!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB