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-08-12 07:18:08

photovox
New member
Registered: 2009-08-12
Posts: 4

I think samba's broken

After successfully getting lighttpd working, securing it, and serving up musicbrowser to me at work, I'm having some trouble. None of my computers (mac, windows, xbmc) can see the DNS-323 via network share (I think that's the right term). Here's a summary of what's been going on:

- I can telnet (ssh) and ftp into it, and access the web configuration
- I updated the firmware to 1.07.
- I followed the directions on the known issues http://dns323.kood.org/information:know …  no access
- I tried this info on bettersamba http://dns323.kood.org/howto:bettersamb … _unc_paths

Here's my log:

Code:

**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
Tue Aug 11 20:06:59 GMT 2009
ln -snf /mnt/HD_a2/ffp /ffp
* Running /ffp/etc/fun_plug.init ...
* Running /ffp/etc/rc ...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/transmission.sh ...
Starting transmission-daemon
su: unknown id: nobody
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh inactive
* /ffp/start/sshd.sh ...
Starting /ffp/sbin/sshd 
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mysqld.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
*  OK

...and here's the "ps"

Code:

PID   USER     COMMAND
    1 root     init                                
    2 root     [ksoftirqd/0]
    3 root     [events/0]
    4 root     [khelper]
    5 root     [kthread]
   11 root     [kblockd/0]
   14 root     [khubd]
   49 root     [pdflush]
   50 root     [pdflush]
   52 root     [aio/0]
   51 root     [kswapd0]
  189 root     [scsi_eh_0]
  190 root     [scsi_eh_1]
  200 root     [mtdblockd]
  217 root     [kcryptd/0]
  218 root     [kmirrord/0]
  229 root     [loop0]
 1252 root     atd 
 1330 root     [md0_raid1]
 1518 root     chkbutton 
 1536 root     ./btdog ./bt --daemon-loop 
 1537 root     ./bt --daemon-loop 
 1539 root     ./bt --daemon-loop 
 1540 root     ./bt --daemon-loop 
 1541 root     ./bt --daemon-loop 
 1542 root     ./bt --daemon-loop 
 1546 root     /web/webs 
 1551 root     fancontrol 
 1600 root     op_server 3 3 3 
 1607 root     -sh 
 1609 root     check_hotplug 
 1646 root     pure-ftpd (SERVER)                                              
 1678 root     crond 
 1699 root     lpd Waiting
 1717 root     ./bt --daemon-loop 
 1792 root     /ffp/sbin/sshd 
 3774 root     /usr/sbin/samba/nmbd -D 
 4504 root     sshd: root@pts/0  
 4506 root     -sh 
 4512 root     ps

I'm thinking of upgrading samba, but posts that http://dns323.kood.org/forum/viewtopic.php?pid=31005 link to don't really provide enough info for me to do it.

I guess I'm a linux newbie, but I can follow directions very well. Can anyone give me a hand? Thanks!

Offline

 

#2 2009-08-12 10:21:45

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

Re: I think samba's broken

Can you 'ssh' to your DSN-323 and manually restart samba with the following command:

    # /usr/bin/smb start

and post the output of the manual samba restart command.


Also post the output of the following two commands?

    # file /etc/samba/smb.conf

and

    # cat /etc/samba/smb.conf

Last edited by mig (2009-08-12 10:22:21)


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 2009-08-12 15:24:09

photovox
New member
Registered: 2009-08-12
Posts: 4

Re: I think samba's broken

# /usr/bin/smb restart

Code:

$Shutting down SMB services: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]

$Shutting down NMB services: 
$Starting SMB services: 
$Starting NMB services:

# file /etc/samba/smb.conf

Code:

/etc/samba/smb.conf: ASCII text

# cat /etc/samba/smb.conf

Code:

[ global ]
interfaces = egiga0
unix charset = UTF8
workgroup = workgroup
netbios name = strangler
server string = DNS-323
hosts allow = 
hosts deny = 
security = USER
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_a4/.lpd
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No

[ BT ]
comment = 
path = /mnt/HD_a2/BT
valid users = 
read only = no
guest ok = yes
oplocks = no
map archive = no

[ Volume_1 ]
comment = 
path = /mnt/HD_a2
valid users = 
read only = no
guest ok = yes
oplocks = no
map archive = no

hahaha yes I did name my dns-323 "strangler"

I should also mention that I changed the (static) ip address and reserved the ip address on my router (dir-655), and of course that didn't help either.

Thanks again for looking at this.

Offline

 

#4 2009-08-12 19:03:42

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

Re: I think samba's broken

The smb.conf file looks good, and smb seems to restart, so maybe the problem is in netBios name resolution.

Do you have the correct workgroup defined in the smb.conf file 'workgroup'?

Are you trying to access the DNS-323 by name or IP address?

Try using IP address and that should bypass any netBios name resolution issues.


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 2009-08-13 07:16:17

photovox
New member
Registered: 2009-08-12
Posts: 4

Re: I think samba's broken

I double-checked all of the workgroups names on all my machines, and they are all "workgroup".

On my mac I tried connecting to it by its IP address, but it returns a connection error saying that the name or password is not correct. I tried every password from the users on the DNS-323 to the mac computer user (but the username is >8 characters), but I got nothing.

I then went to my windows xp machine and tried using the easy search utility (v4.4.0.0). It seems like it can indeed find it on the network, but when I try to map it to a netwok drive it prompts me for a username/password. Again, I tried all of the DNS-323 users and the windows xp computer user (<8 characters, which I don't think is a problem). Trying to add it via IP address or network share name doesn't do anything.

Then I logged into the DNS-323 to double-check the network access rules. Volume_1 was set to ALL users for read and write access. I added another rule, exactly duplicating the Volume_1 rule: ALL users, Volume_1, Optlocks=no, archive=no. Weirdly enough, I could then see the DNS-323 on my mac, but I could not connect to it. I deleted the new rule and left the original ones there.

A little later in the night, I could see the DNS-323 on my windows xp machine as well as my mac, but I still can't connect to it.

I feel like I'm so close.

(ps - I'm running firmware 1.07 and the iTunes GUI got corrupted. I updated the wiki http://dns323.kood.org/information:know … _interface to reflect that the bug still exists)

Offline

 

#6 2009-08-13 09:55:30

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

Re: I think samba's broken

Wow, Photovox I don't know what the problem could be?  I'm out of ideas.

The user/password for samba is kept on the DSN-323 in the file /etc/samba/smbpasswd

If you ssh to your DNS-323 and type:

   # cat /etc/samba/smbpasswd

you should see the list of valid samba users and the encrypted passwd.

That might give you a clue what users are valid?

Last edited by mig (2009-08-13 09:55:47)


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

 

#7 2009-08-14 17:55:31

photovox
New member
Registered: 2009-08-12
Posts: 4

Re: I think samba's broken

I restored to factory settings and that seemed to have done the trick. Weird.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB