From mint-bounce@lists.fishpool.fi Sat Aug 28 07:19:30 2010 To: From: Peter Slegg Subject: Re: [MiNT] Samba client Reply-To: Peter Slegg X-Mailer: MyMAIL Rev:1.94.13761 (Atari/(STiK/STinG/GlueSTiK)) X-Hardware: Atari Milan MIME-Version: 1.0 Date: Sat, 28 Aug 2010 12:17:30 +0200 (GMT) Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal Message-Id: <0005edad.01c73262acda@smtp.freeola.net> References: <00162384.01c73262e43a@smtp.freeola.net> In-Reply-To: 00162384.01c73262e43a@smtp.freeola.net X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: p.slegg@scubadivers.co.uk Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o7SBJTHH016007 I just noticed something: bash-2.05a# route Destination Gateway Flags Ref Use Metric Iface default 192.168.0.1 UGD 1 1261 0 rtk0 192.168.0.201 * UH 1 866 0 lo0 127.0.0.0 * U 1 0 0 lo0 127.0.0.1 * UH 1 8 0 lo0 Should the Iface for 192.168.0.201 be rtk0 or lo0 ? Peter On Mon, 23 Aug 2010 16:13:46 , Peter Slegg wrote: > Hi, > > How many of us use samba to move files across their network ? > I have been using it for years but this morning I discovered a problem. > > I have had a static ip on the Milan because I couldn't get dhcp working. > This morning I got it working with a one line change :-) > > However, it seems that this breaks samba (nmb) Version 3.0.1-1 > > I had this line in smb.conf > > interfaces = 192.168.0.21/24 127.0.0.1/8 > > which I replaced with > > interfaces = rtk0 > > Now when I start samba, the nmb log shows: > > [2010/08/23 15:38:55, 0] nmbd/nmbd_subnetdb.c:create_subnets(218) > create_subnets: Waiting for an interface to appear ... > [2010/08/23 15:39:00, 0] lib/interface.c:load_interfaces(216) > WARNING: no network interfaces found > [2010/08/23 15:39:05, 0] lib/interface.c:load_interfaces(216) > WARNING: no network interfaces found > > Googling shows there was an AMD64 bug with the same sort of issue > in samba 3.0.23 This is later than the samba we have which was built > in 2004. The current version 3.5.4 > > The samba docs hint that interface = 192.168.0.0/24 would work but it > doesn't. > > Using a fixed ip in samba works but that defeats the object of dhcp. > > > >smbd -d 10 -i > ... > file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Mon Aug 23 16:09:03 2010 > added interface ip=192.168.0.251 bcast=192.168.0.255 nmask=255.255.255.0 > added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 > Hash size = 521. > Netbios name list:- > my_netbios_names[0]="MILAN" > tdb(unnamed): tdb_brlock failed (fd=6) at offset 4 rw_type=1 lck_type=6: Permission denied > loaded services > fcntl_lock 7 6 0 1 0 > fcntl_lock: fcntl lock gave errno 36 (Permission denied) > fcntl_lock: lock failed at offset 0 count 1 op 6 type 0 (Permission denied) > ERROR: smbd is already running. File /var/run/smbd.pid exists and process id 721 is running. >