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 2007-04-23 23:32:56

mrjeth
Member
Registered: 2006-12-19
Posts: 12

Samba user rights problem

Hello
I have almost successfully managed to set up my DSM-G600 to accept different users with different permission. The reason why I am using different permission is that I don't want my children to accidentally erase my family pictures when they are playing with computers on the network. It was quite easy to setup different users when I replaced the original samba smb.conf file with my own.

I have six computers (Windows XP) attached to the network and the DSM-G600, all of them, but the Windows XP Media center works fine! The users defined in MCE are not recognized by the DSM-G600, they are always considered to be guest and only files that are open to everyone can be accessed.  I don't know why!

To find out whats wrong I tried to set up Samba in debug mode (my  plan is to investigate the difference when users are accessing it from other windows XP and when users are using it from Windows Media Center)
I have inserted the lines below to my new smb.conf . The lines are accepted by samba but it only generates empty files with the hostname of the connecting computer. I have tired a number of different ways but the result is always the same; zero bytes long files.

Does anyone have some idea what the problem is? Why are not users in MCE considered to be?


# Debug logging information
log level = 3
log file = /mnt/HD_a2/linux/var/log/samba_log.%m
max log size = 50
debug timestamp = yes


Best regards
Tomas

Offline

 

#2 2007-04-24 09:37:42

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

Re: Samba user rights problem

I am not sure but I think that D-Link has commented out some debug functions from samba source.
I did generate a patchset for D-Link changes. You might see something from there.
http://dns323.kood.org/downloads/people … g600.patch


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

Offline

 

#3 2007-12-04 03:19:22

mrheinze
New member
Registered: 2007-12-03
Posts: 1

Re: Samba user rights problem

I was trying to do a similar thing.  However, it seems that whilst I can edit smb.conf, if I restart the system from the web tool (from Tools > System > Restart), the smb.conf file I edited is overwritten by what was the original smb.conf file.  I have looked at the rc.sh and rc.init.sh files, and done some other searching to see if there is a startup script somewhere that is doing this, but have come up with nothing.

What am I missing ?

Cheers.  Mark

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB