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-03-13 22:05:42

aldo.corleone
Member
Registered: 2008-10-23
Posts: 12

smbstatus?

Good day,

Is there a way to find out what files are open with samba?  SMBSTATUS is what normally would be used, but I haven't found a package that contains that.

Any assistance would be appreciated.

Offline

 

#2 2009-03-14 21:38:36

jdoering
Member
Registered: 2008-04-10
Posts: 95

Re: smbstatus?

I just compiled Samba 3.3.2 and smbstatus built and appears to work. You probably need the version matching whatever Samba you're using (stock, ffp package, etc); if it's the stock one cross-compiling with the stock toolchain makes sense. If you're using an ffp 0.5 version then compiling that version of Samba on the DNS323 is the way to go.

I'm not sure if smbstatus can be used cross-version; probably not worth messing with. When I run my 3.3.2 version with stock 3.0.2 Samba loaded; it's trying to use completely different paths for the database and such (maybe that can be overriden but I don't have much confidence that it's a good route to go anyway).

I'll try cross-compiling the version for the stock firmware (1.06) to see how easily that goes.

-Jeff

Offline

 

#3 2009-03-15 02:53:51

jdoering
Member
Registered: 2008-04-10
Posts: 95

Re: smbstatus?

Here's a version compiled using the stock firmware toolchain with paths to match the 3.0.2 smbd included in FW 1.06. Looks like it works fine; although using it alone it will complain because /lib/lowcase.dat and /lib/upcase.dat don't exist. It doesn't look very significant other than these annoying warnings:

Code:

creating lame upcase table
creating lame lowcase table

The messages can be suppressed by reducing the debug level to 0: "smbstatus -d 0" or by symlinking the relevent codepage files (included in the attached tar) to /lib.

-Jeff

Last edited by jdoering (2009-03-15 08:30:02)


Attachments:
Attachment Icon smbstatus.tgz, Size: 499,941 bytes, Downloads: 231

Offline

 

#4 2009-03-17 18:15:03

aldo.corleone
Member
Registered: 2008-10-23
Posts: 12

Re: smbstatus?

Thanks so much, this works great!!!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB