smb mounts
Mark Knecht
markknecht at gmail.com
Wed Jan 26 22:34:25 UTC 2005
On Wed, 26 Jan 2005 14:06:12 -0800, Rick Stevens
<rstevens at vitalstream.com> wrote:
> > What's the first trick I'm missing so that I might make some
> > forward progress?
>
> 1. ssh to dragonfly
Sitting at dragonfly now.
>
> 2. Check dragonfly's default route. Make sure it's set.
Looks good to me:
[root at dragonfly ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 * 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 192.168.10.3 0.0.0.0 UG 0 0 0 wlan0
[root at dragonfly ~]#
10.3 is our router. I'm on 192.168.10.51 when I try to connect.
>
> 3. Make sure you're allowing smb connections to dragonfly both in
> /etc/samba/smb.conf and in your iptables. Judging from the
> "no route to host" error, the odds are that iptables is blocking
> you. You need UDP and TCP ports 137-139 open.
smb.conf is long and compicated but from SWAT's view page I See this:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/01/26 14:33:20
# Global parameters
[global]
workgroup = MSHOME
server string = Samba Server
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[MusicLib]
path = /MusicLib
guest ok = Yes
HOW DO I CHECK iptables???? I think thisis very possibly it.
>
> 4. Verify that dragonfly has nmbd and smbd running (you need both)
[root at dragonfly ~]# ps aux | grep smb
root 7298 0.0 0.4 11496 2408 ? Ss 11:47 0:00 smbd -D
root 7299 0.0 0.4 11496 2388 ? S 11:47 0:00 smbd -D
root 7803 0.0 0.1 3824 668 pts/1 S+ 14:34 0:00 grep smb
[root at dragonfly ~]# ps aux | grep nmb
root 7303 0.0 0.4 9472 2008 ? Ss 11:47 0:00 nmbd -D
root 7805 0.0 0.1 3804 660 pts/1 S+ 14:34 0:00 grep nmb
[root at dragonfly ~]#
>
> 5. Try "smbclient \\dragonfly -L -U username" ON dragonfly to
> verify what's being exported.
NJt happy with the command format: (tried with 'mark' instead of
'username' also...)
[root at dragonfly ~]# smbclient \\dragonfly -L -U username
\dragonfly: Not enough '\' characters in service
Usage: [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
[-R|--name-resolve NAME-RESOLVE-ORDER]
[-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST]
[-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan]
[-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES]
[-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
[-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
[-V|--version] [-O|--socket-options SOCKETOPTIONS]
[-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
[-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
[-A|--authentication-file FILE] [-S|--signing on|off|required]
[-P|--machine-pass] service <password>
[root at dragonfly ~]#
>
> 6. Try "smbclient \\dragonfly -L -U username" on your client node.
Same results as #5.
More information about the Redhat-install-list
mailing list