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 2008-01-25 00:23:15

AjejeBraso
New member
Registered: 2008-01-25
Posts: 4

Network Access broken - SMB screwed up?

Hi guys,

I have my DNS323 running for a few months now, i have fun_plug with telnet access, mldonkey, lighthttp etc. All was working fine, until yesterday...


Yesterday I kindly received an email from my DNS323 saying that one of my harddrives had failed... well, since i only have one i was concerned. So i connected via telnet today and had to find out that my drive seemed fine, however - I couldn't access the NAS as i normally could from OS X. So i went to the webpage and checked the settings and to my suprise all the device information was gone, so i tried to re-enter the info but without success.

Some weird (square) character was shown in the name section and both workgroup and description remained blank. So i had a look at the smb.conf file and saw that my three users i had set up were in there multiple times, and i also saw that there was no [global] section, so i added one

/etc/samba # cat smb.conf
[global]
client code page = 850
character set = 850
workgroup = HOME
netbios name = DNS323
server string = DNS-323

[ Volume_1 ]
comment = all
path = /mnt/HD_a4/
valid users = AjejeBraso
read only = no
guest ok = no

[ Recycl3r ]
comment = private
path = /mnt/HD_a4/
valid users = AjejeBraso
read only = no
guest ok = no

[ NAStorage ]
comment = network storage
path = /mnt/HD_a4/NAStorage
valid users = andy
read only = no
guest ok = no


And now i was able to set and change the hostname/workgroup and description of the DNS323. However, ... again ... the next problem came up: Still couldn't connect so i was looking at the Network Access section in the config web interface. As soon as i try to change anything in here the whole web interface becomes unresponsive and i can't connect via http to the config interface anymore. After a minute or so the web interface is back (the box does not restart in the meantime)

Does anybody have a clue what could be wrong with my box? I think the harddrive is fine, i guess however that my samba config might be screwed up. could somebody post his config so that i can figure out what is different or is there a way of completely re-setting the samba on the DNS-323.
Well at least i guess its the samba, or could it be something else?

Thanks for helping out!

Andy

Offline

 

#2 2008-01-25 01:12:05

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Network Access broken - SMB screwed up?

What version of firmware are you using?


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#3 2008-01-25 09:46:35

AjejeBraso
New member
Registered: 2008-01-25
Posts: 4

Re: Network Access broken - SMB screwed up?

Oh yeah, i should have mentioned that: its using firmware 1.03
the disk is 750GB (a hitachi deskstar if i remember correctly) formatted with ext2

hope somebody can help! thanks

Last edited by AjejeBraso (2008-01-25 09:50:28)

Offline

 

#4 2008-01-25 12:51:39

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Network Access broken - SMB screwed up?

I'm running FWv1.03 with RAID1 this is (more or less) the "default" smb.conf

Code:

[ global ]
client code page = 850
character set = 850
workgroup = workgroup
netbios name = olympus
server string = DNS-323
hosts allow = 
hosts deny = 
security = SHARE
encrypt passwords = yes
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
max xmit = 65535
create mask = 0777
directory mask  = 0777
force create mode = 0777
force directory mode = 0777
load printers = Yes
printcap name = /usr/local/LPRng/etc/printcap
min print space = 2000
max print jobs = 1000
printing = lprng
print command = /usr/local/LPRng/bin/lpr -P%p -r %s 
lpq command = /usr/local/LPRng/bin/lpq -P%p
lprm command = /usr/local/LPRng/bin/lprm -P%p %j
lppause command = /usr/local/LPRng/sbin/lpc hold %p %j
lpresume command = /usr/local/LPRng/sbin/lpc release %p %j
queuepause command = /usr/local/LPRng/sbin/lpc -P%p stop
queueresume command = /usr/local/LPRng/sbin/lpc -P%p start
use sendfile =yes


[ web_page ]
comment = Enter Our Web Page Setting
path = /mnt/web_page
valid users = 
read only = yes
guest ok = yes

[printers]
path = /mnt/HD_a2/.lpd
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No

[ Volume_1 ]
comment = 
path = /mnt/HD_a2
valid users = mig
read only = no
guest ok = no

Hope that helps.


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#5 2008-01-25 13:12:18

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: Network Access broken - SMB screwed up?

AjejeBraso wrote:

Some weird (square) character was shown in the name section and both workgroup and description remained blank ...
Andy

Hi Andy

I noticed that when DNS-323 notices another device in the network having its device name, it resets its device name and other things, and starts behaving strangely.  This may be what you are seeing too?

Kind regards,

Jaya


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

#6 2008-01-26 11:52:51

AjejeBraso
New member
Registered: 2008-01-25
Posts: 4

Re: Network Access broken - SMB screwed up?

Thanks mig,

that actually solved my problem. It seems that for some reason my smb.conf file did get completely screwed up and some sections were missing. After copying your file, editing it and restarting the samba server i could connect just fine to my box!

@jayas: I only have one device and there was only my mac and the dns323 on the net at that time, i reckon somehow mlnet messed my box up and screwed with my samba config file... but not sure what exactly happend, i tend to get errors when i have mlnet running, so i guess i will switch it off from now on!

brilliant, thanks again!

A.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB