I tried this (again) and checked carefully the logs. No improvement. I did however try recre4ating the printer from the Windoze machine and spotted an entry added to log.nmbd:
Samba name server BOHUSLAV is now a local master browser for workgroup WORKGROUP on subnet 10.0.0.1 The obvious problem here is that 10.0.0.1 is not connected to anything! The 10.0.0.x network is just an end-to-end link between my webserver (a different machine) and the ADSL modem. I could deactivate that network, but I prefer to leave it active so I can swap machines quickly if neccesary - bohuslav is a mirrored copy of the web server to act as backup. I can't see anything obvious in smb.conf which would make Samba look at a particular network, apart for the 'allow 192.168.xxx' statement which I would have assumed would be enough to direct it in that direction. Is there something which I can add to force it to just listen on 192.168.0.x (which is my local network)? Many thanks. Bill On Saturday 15 November 2008, Daniel L. Miller wrote: > In your global section, add something like: > > idmap uid=10000-20000 > idmap gid=10000-20000 > > bill purvis wrote: > > Hi, > > I recently migrated from Madrake/Mandriva to Ubuntu (8.04) on the > > machine with the printer attached. When I set up samba originally > > my understanding of it was very limited. It's probably even more > > limited now (brain cells dying off! :-) ). However, at least it > > did what I wanted - gave access to the printer and a scratch disk > > area for the Windows machines. When I migrated to Ubuntu, I copied > > the bits I thought relevant into the distributed smb.conf and started > > it up. I didn't get around to testing the Windows access until today. > > When I tried to print or open the scratch area on Windows it fails to > > make the connection. I tried deleting the printer entry and re-creating > > it with 'add printer' but that failed also. I've check the various > > log files on the server and found lines like: > > > > idmap uid range missing or invalid > > idmap will be unable to map foreign SIDs > > [2008/11/14 16:52:34, 0] nsswitch/idmap.c:idmap_alloc_init(750) > > ERROR: Initialization failed for alloc backend, deferred! > > > > that was in the log.winbindd-idmap file. Nothing else notable. > > I'm attaching a copy of the essential bits of the smb.conf file > > as listed by testparm. I'd be grateful if someone who knows more > > about samba can advise me what to try next. > > > > Many thanks, > > Bill > > > > ----------------------smb.conf------------------------------------------ > > [global] > > server string = Samba Server %v > > map to guest = Bad User > > log file = /var/log/samba/log.%m > > max log size = 50 > > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > > dns proxy = No > > hosts allow = 192.168.1., 192.168.2., 127. > > > > [homes] > > comment = Home Directories > > read only = No > > browseable = No > > > > [printers] > > comment = All Printers > > path = /var/spool/samba > > create mask = 0700 > > guest ok = Yes > > printable = Yes > > browseable = No > > > > [print$] > > path = /var/lib/samba/printers > > write list = @adm, root > > inherit permissions = Yes > > guest ok = Yes > > > > [pdf-gen] > > comment = PDF Generator (only valid users) > > path = /var/tmp > > printable = Yes > > printing = bsd > > print command > > = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" & > > lpq command = /bin/true > > lprm command = lprm -P'%p' %j > > > > [backups] > > comment = Backup Disk 1 > > path = /back1 > > read only = No > > guest ok = Yes > > ---------------------------------------------------------- > > -- > Daniel L. Miller, VP - Engineering, SET > AM Fire & Electronic Services, Inc. [AMFES] > [EMAIL PROTECTED] 702-312-5276 -- +---------------------------------------+ | Bill Purvis, Model Engineer | | email: [EMAIL PROTECTED] | +---------------------------------------+ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
