<div>Hi All,<br>I have a 2 computer LAN using a 2Wire 1701HG Gateway/DSL Modem with one WinXP machine connecting to gateway via Linksys WMP54Gv4 wlan adapter and the other Ubuntu machine connected directly via 3Com 3c905B 100BaseTX [Cyclone] (rev 34) NIC. The system works near perfectly as individual machines but don't talk to each other. Although, I did the actual setups on the two machines, I had hand holding help from a Debian friend and a WXP friend. My suspicions are that the network or Samba is not set up properly. I've spent many hours over weeks googling, reading finds and manuals, trying solutions that may have made matters worse and have got to the point that don't know what to do/try next. Haven't specified any Domain Name for the system and believe that's unnecessary. Using DHCP but my IPs never change. Haven't attempted to reinstall the wlan card or network as not confident in my ability to do so. All the above FYI. My
symptoms are:<br><br>Can't map network drives on WinXP. I click on "map network drives" and enter on the popup:<br></div> <div>Drive: Z: (Have use drive: M at times)</div> <div>Folder: <a href="file://%5C%5Cubuntu%5CUID">\\ubuntu\UID</a> ( UID's are same on both machines.<br> <br>Pavilion8370 is machine name for WinXP and Ubuntu is for Feisty Ubuntu). Also used <a href="file://%5C%5Csamba%5CUID">\\samba\UID</a> with same results.</div> <div>Click finish, get the "attempting to connect to \\ubuntu\UID" popup and after a considerably long wait it asks for my user name and password via popup. I enter the info which are the same on both machines. Another long wait and another popup "connect to ubuntu" comes up with user name filled in with UBUNTU\lchata and remembered password filled in. Click OK, another long wait and the same popup shows up again. Hitting ok again several times gives the same results or starting
over gives same results. I've done this what seems like a hundred times all with same results.</div> <div>I would like some clue as to what's is causing this and how to proceed fixing it.</div> <div> </div> <div>On the Ubuntu machine with all samba installed(smb.conf shown at end) I can do from konsole:<br>lchata@ubuntu:/etc/samba$ smbclient -L pavilion8370<br>Password:<br>Domain=[PAVILION8370] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]<br><br> Sharename Type Comment<br> --------- ---- -------<br> Default User Disk<br> IPC$ IPC Remote
IPC<br> SharedDocs Disk<br> print$ Disk Printer Drivers<br> My Music Disk<br> EPSONSty Printer EPSON Stylus CX5800F Series<br> C Disk<br> NetHood Disk<br> EPSON Stylus CX6400 Disk<br> ADMIN$ Disk Remote
Admin<br> C$ Disk Default share<br> Printer Printer EPSON Stylus CX6400<br>Domain=[PAVILION8370] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]<br><br> Server Comment<br> --------- -------<br><br> Workgroup Master<br> --------- -------<br>lchata@ubuntu:/etc/samba$<br>No other
samba command works. If I try any other smbclient options, and I've tried all, I just get the smbclient help menu.<br><br>If I try smbmount I get:<br>lchata@ubuntu:/etc/samba$ sudo mount -t smbfs //PAVILION8370/C$ /mnt/"My Pictures"<br>Password:<br>opts: rw<br>mount.smbfs started (version 3.0.24)<br>added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0<br>added interface ip=192.168.1.64 bcast=192.168.1.255 nmask=255.255.255.0<br>not adding duplicate interface 192.168.1.64<br>can't determine netmask for 192.168.1.65<br>Could not resolve mount point /mnt/My Pictures<br>lchata@ubuntu:/etc/samba$<br><br>If I try "smbmount //pavilion8370/c /mnt/c -l lchata", I get:<br><br>lchata@ubuntu:/etc/samba$ smbmount //pavilion8370/c /mnt/c -l lchata<br>/mnt/c: invalid option -- l<br>mount.smbfs started (version 3.0.24)<br>added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0<br>added interface ip=192.168.1.64 bcast=192.168.1.255 nmask=255.255.255.0<br>not
adding duplicate interface 192.168.1.64<br>can't determine netmask for 192.168.1.65<br>Could not resolve mount point /mnt/c<br>lchata@ubuntu:/etc/samba$<br>Trying other shares, results same, only share names change.<br><br>Kernel used and smb.conf shown below:<br>lchata@ubuntu:/var/log/samba$ uname -a<br>Linux ubuntu 2.6.20-16-lowlatency #2 SMP PREEMPT Thu Jun 7 20:23:03 UTC 2007 i686 GNU/Linux<br>lchata@ubuntu:/var/log/samba$<br>lchata@ubuntu:/var/log/samba$ cat /etc/samba/smb.conf<br>#<br>snipped the # notes<br><br>#======================= Global Settings =======================<br><br>[global]<br> log file = /var/log/samba/log.%m<br> load printers = yes<br> passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .<br> obey pam restrictions =
yes<br> socket options = TCP_NODELAY<br> hide dot files = no<br> username map = /etc/samba/smbusers<br> encrypt passwords = true<br> passdb backend = tdbsam<br> passwd program = /usr/bin/passwd %u<br> dns proxy = no<br> writeable = yes<br> printing = cups<br> server string = %h server (Samba, Ubuntu)<br> invalid users = root<br> workgroup = MSHOME<br> debug level = 3<br> valid users =
lchata,"leonard Chatagnier",@lchata<br> printcap name = cups<br> syslog = 0<br> security = user<br> panic action = /usr/share/samba/panic-action %d<br> max log size = 1000<br><br>## Browsing/Identification ###<br><br># Change this to the workgroup/NT-domain name your Samba server will part of<br><br># server string is the equivalent of the NT Description field<br><br># Windows Internet Name Serving Support Section:<br># WINS Support - Tells the NMBD component of Samba to enable its WINS Server<br>; wins support = no<br><br># WINS Server - Tells the NMBD components of Samba to be a WINS Client<br># Note: Samba can be either a WINS Server, or a WINS Client, but NOT both<br>; wins server = w.x.y.z<br><br># This will prevent nmbd to search for
NetBIOS names through DNS.<br><br># What naming service and in what order should we use to resolve host names<br># to IP addresses<br>; name resolve order = lmhosts host wins bcast<br><br>#### Networking ####<br><br># The specific set of interfaces / networks to bind to<br># This can be either the interface name or an IP address/netmask;<br># interface names are normally preferred<br> interfaces = 127.0.0.0/8 eth0 192.168.1.64 192.168.1.65<br><br># Only bind to the named interfaces and/or networks; you must use the<br># 'interfaces' option above to use this.<br># It is recommended that you enable this feature if your Samba machine is<br># not protected by a firewall or is a firewall itself. However, this<br># option cannot handle dynamic or non-broadcast interfaces correctly.<br>; bind interfaces only = true<br><br><br><br>#### Debugging/Accounting ####<br><br># This tells Samba to use a separate log file for each machine<br># that
connects<br><br># Put a capping on the size of the log files (in Kb).<br><br># If you want Samba to only log through syslog then set the following<br># parameter to 'yes'.<br>; syslog only = no<br><br># We want Samba to log a minimum amount of information to syslog. Everything<br># should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log<br># through syslog you should set the following parameter to something higher.<br><br># Do something sensible when Samba crashes: mail the admin a backtrace<br><br><br>####### Authentication #######<br><br># "security = user" is always a good idea. This will require a Unix account<br># in this server for every user accessing the server. See<br># /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html<br># in the samba-doc package for details.<br><br># You may wish to use password encryption. See the section on<br># 'encrypt passwords' in the smb.conf(5) manpage before enabling.<br><br># If you are
using encrypted passwords, Samba will need to know what<br># password database type you are using.<br><br><br><br># This boolean parameter controls whether Samba attempts to sync the Unix<br># password with the SMB password when the encrypted SMB password in the<br># passdb is changed.<br> unix password sync = yes<br><br># For Unix password sync to work on a Debian GNU/Linux system, the following<br># parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for<br># sending the correct chat script for the passwd program in Debian Sarge).<br><br># This boolean controls whether PAM will be used for password changes<br># when requested by an SMB client instead of the program listed in<br># 'passwd program'. The default is 'no'.<br>; pam password change = no<br><br>########## Domains ###########<br><br># Is this machine able to authenticate users. Both PDC and BDC<br># must have this setting enabled. If you are the BDC you
must<br># change the 'domain master' setting to no<br>#<br>; domain logons = yes<br>#<br># The following setting only takes effect if 'domain logons' is set<br># It specifies the location of the user's profile directory<br># from the client point of view)<br># The following required a [profiles] share to be setup on the<br># samba server (see below)<br>; logon path = \\%N\profiles\%U<br># Another common choice is storing the profile in the user's home directory<br>; logon path = \\%N\%U\profile<br><br># The following setting only takes effect if 'domain logons' is set<br># It specifies the location of a user's home directory (from the client<br># point of view)<br>; logon drive = H:<br>; logon home = \\%N\%U<br><br># The following setting only takes effect if 'domain logons' is set<br># It specifies the script to run during logon. The script must be stored<br># in the [netlogon] share<br># NOTE: Must be store in
'DOS' file format convention<br>; logon script = logon.cmd<br><br># This allows Unix users to be created on the domain controller via the SAMR<br># RPC pipe. The example command creates a user account with a disabled Unix<br># password; please adapt to your needs<br>; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u<br><br>########## Printing ##########<br><br># If you want to automatically load your printer list rather<br># than setting them up individually then you'll need this<br><br># lpr(ng) printing. You may wish to override the location of the<br># printcap file<br>; printing = bsd<br>; printcap name = /etc/printcap<br><br># CUPS printing. See also the cupsaddsmb(8) manpage in the<br># cupsys-client package.<br><br># When using [print$], root is implicitly a 'printer admin', but you can<br># also give this right to other users to add drivers and set printer<br># properties<br>;
printer admin = @lpadmin<br><br><br>############ Misc ############<br><br># Using the following line enables you to customise your configuration<br># on a per machine basis. The %m gets replaced with the netbios name<br># of the machine that is connecting<br>; include = /home/samba/etc/smb.conf.%m<br><br># Most people will find that this option gives better performance.<br># See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html<br># for details<br># You may want to add the following on a Linux system:<br># SO_RCVBUF=8192 SO_SNDBUF=8192<br><br># The following parameter is useful only if you have the linpopup package<br># installed. The samba maintainer and the linpopup maintainer are<br># working to ease installation and configuration of linpopup and samba.<br>; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &<br><br># Domain Master specifies Samba to be
the Domain Master Browser. If this<br># machine will be configured as a BDC (a secondary logon server), you<br># must set this to 'no'; otherwise, the default behavior is recommended.<br>; domain master = auto<br><br># Some defaults for winbind (make sure you're not using the ranges<br># for something else.)<br> idmap uid = 10000-20000<br> idmap gid = 10000-20000<br> template shell = /bin/bash<br><br>#======================= Share Definitions =======================<br><br># Un-comment the following (and tweak the other settings below to suit)<br># to enable the default home directory shares. This will share each<br># user's home directory as \\server\username<br>[homes]<br> comment = Home Directories<br> browseable = yes<br><br># By default, \\server\username shares can be connected to by anyone<br># with access to the samba server. Un-comment the following parameter<br># to make sure that
only "username" can connect to \\server\username<br> valid users = %S<br><br># By default, the home directories are exported read-only. Change next<br># parameter to 'yes' if you want to be able to write to them.<br> writable = yes<br><br># File creation mask is set to 0600 for security reasons. If you want to<br># create files with group=rw permissions, set next parameter to 0664.<br> create mask = 0664<br><br># Directory creation mask is set to 0700 for security reasons. If you want to<br># create dirs. with group=rw permissions, set next parameter to 0775.<br> directory mask = 0775<br><br># Un-comment the following and create the netlogon directory for Domain Logons<br># (you need to configure Samba to act as a domain controller too.)<br>;[netlogon]<br>; comment = Network Logon Service<br>; path = /home/samba/netlogon<br>; guest ok = yes<br>; writable = no<br>;
share modes = no<br><br># Un-comment the following and create the profiles directory to store<br># users profiles (see the "logon path" option above)<br># (you need to configure Samba to act as a domain controller too.)<br># The path below should be writable by all users so that their<br># profile directory may be created the first time they log on<br>;[profiles]<br>; comment = Users profiles<br>; path = /home/samba/profiles<br>; guest ok = no<br>; browseable = no<br>; create mask = 0600<br>; directory mask = 0700<br><br>[printers]<br> comment = All Printers<br> browseable = no<br> path = /var/spool/samba<br> printable = yes<br> public = no<br> writable = no<br> create mode = 0700<br><br># Windows clients look for this share name as a source of downloadable<br># printer drivers<br>[print$]<br> comment =
Printer Drivers<br> path = /var/lib/samba/printers<br> browseable = yes<br> read only = yes<br> guest ok = no<br># Uncomment to allow remote administration of Windows print drivers.<br># Replace 'ntadmin' with the name of the group your admin users are<br># members of.<br>; write list = root, @ntadmin<br><br># A sample share for sharing your CD-ROM with others.<br>;[cdrom]<br>; comment = Samba server's CD-ROM<br>; writable = no<br>; locking = no<br>; path = /cdrom<br>; public = yes<br><br># The next two parameters show how to auto-mount a CD-ROM when the<br># cdrom share is accesed. For this to work /etc/fstab must contain<br># an entry like this:<br>#<br># /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0<br>#<br>#
The CD-ROM gets unmounted automatically after the connection to the<br>#<br># If you don't want to use auto-mounting/unmounting make sure the CD<br># is mounted on /cdrom<br>#<br>; preexec = /bin/mount /cdrom<br>; postexec = /bin/umount /cdrom<br><br>lchata@ubuntu:/var/log/samba$ <br><br>Would really appreciate very much any help geting Samba and file sharing to work on my LAN.<br>TIA,<br></div> <BR><BR>Leonard Chatagnier<br>lenc5570@sbcglobal.net