Re: [expert] mdk8 - smb/nmb weird [tree connect failed: ERRSRV - ERRinvnetname]
Jason Straight wrote: Samba is acting wierd and I can't quite seem to pin down the reason for it. If smb is started at boot time it works fine. If smb is off at boot and I start it manually, or if I restart smb after boot I get this [root@jkd rc5.d]# smbclient -L localhost added interface ip=12.32.79.nn bcast=12.32.79.79 nmask=255.255.255.240 Password: Anonymous login successful Domain=[PENGUINFARM] OS=[Unix] Server=[Samba 2.0.8] tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.) [root@jkd rc5.d]# The only thing I can figure is that there must be something that starts after smb that if smb is restarted or started too late this other app must interfere somehow. I don't have anything that would bind to the nmbd or smbd ports that I know of - I'm not running portsentry at this time. Anyone know why this is happening? I found the issue with the /root/tmp error. /etc/profile sets $HOME/tmp as your $TMPPATH. When you start samba, it inherits this $TMPPATH variable. To resolve the issue, I temporarily set TMPPATH=/tmp and restarted samba, it worked like a charm. Woody
Re: [expert] mdk8 - smb/nmb weird [tree connect failed: ERRSRV - ERRinvnetname]
Jason Straight wrote: Samba is acting wierd and I can't quite seem to pin down the reason for it. If smb is started at boot time it works fine. If smb is off at boot and I start it manually, or if I restart smb after boot I get this [root@jkd rc5.d]# smbclient -L localhost added interface ip=12.32.79.nn bcast=12.32.79.79 nmask=255.255.255.240 Password: Anonymous login successful Domain=[PENGUINFARM] OS=[Unix] Server=[Samba 2.0.8] tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.) [root@jkd rc5.d]# The only thing I can figure is that there must be something that starts after smb that if smb is restarted or started too late this other app must interfere somehow. I don't have anything that would bind to the nmbd or smbd ports that I know of - I'm not running portsentry at this time. Anyone know why this is happening? I get the same error. The issue (you'll find by tailing the smb logs) is that samba is trying to use /root/tmp as a connection path. It get s a FS permission denied and passes that on. IT can't write to the file system. Why it's trying to use /root/tmp, I have no idea. Woody