Samba - The bane of my existence (smb.conf)

Matt Graham mhgraham at crow202.org
Thu Aug 22 15:13:31 MST 2013


>  On 08/21/2013 07:37 PM, James Dugger wrote:
>> Sorry for the confusion. Based on your description, the WD
>> N750 router is acting as a NAS (Network Sttached Storage)

Is this true?  If the router/whatever is serving stuff over SMB, then 
you don't need Samba, you need mount.cifs .

On 2013-08-22 14:45, ChasM Marshall wrote:
> If the NAS box is requesting a password, something is weird. You said
> it has no Win restrictions.
> Your NAS device must have a Linux device name.
> Because it is a router, I think it is connected on the Linux device
> named "/dev/eth0".

This is ... flawed.  First off, ethernet interfaces have not had device 
nodes in Linux for a long time unless you're doing TUN/TAP or something 
like that.  Second, a SMB server has a name associated with it, but it 
doesn't have an associated device node.  DNS, NetBIOS, or IP addresses 
are what the mount.cifs things use to talk to the remote server.

If you know this device's IP address, you could try something like 
this:

smbclient -L 192.168.X.Y
(should give you a list of all the services that are on 192.168.X.Y)

mkdir /mnt/other
mount -t cifs //192.168.X.Y/SHARE /mnt/other

SHARE needs to be a filesystem share that the device is making 
available.  In many environments, you usually need to add "-o 
user=USER,domain=DOMAIN" to the above mount command so that the server 
knows you're using the correct username and domain.  If guest access is 
available, you may not need "user=guest", but that's something to try if 
the first try doesn't work.

-- 
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.


More information about the PLUG-discuss mailing list