Joe Doherty
2001-May-05 18:21 UTC
tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)
Hi all, I have been receiving the error "tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)" for a while and I finally fixed it, but I have some questions about why it was happening. Firstly, it is Samba 2.0.7 running on Mandrake 8.0. My smb.conf file is at the end of this message. The machine's name is pinhead and in checking log.pinhead, I noticed that it kept saying that access was denied to /root/tmp. Nowhere is /root/tmp mentioned in smb.conf. I was able to access the shares directly all along, but I couldn't browse the server. By making /root executable by all and /root/tmp readable and executable by all, I am now able to browse the server. My questions are: 1. Why does /root/tmp have anything to do with connecting to the box to browse the shares? Where and how can I change that to a more innocuous directory? 2. Why, with [homes] enabled, am I able to see the share [homes] as well as a share of the username logged in, both pointing to the same directory? If I disable [homes], I can still see the username share and it is affected by any options set for [homes]. Any help is greatly appreciated, I am fairly new to samba and these little problems have really thrown me for a loop... --- smb.conf: # Samba config file created using SWAT # from [hostname and IP removed] # Date: 2001/05/05 13:50:26 # Global parameters [global] workgroup = WSST netbios name = PINHEAD server string = Samba Server %v encrypt passwords = Yes restrict anonymous = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = lpstat dns proxy = No printing = cups print command = /usr/bin/lp -d%p -oraw %s; rm %s lpq command = /usr/bin/lpstat -o%p lprm command = /usr/bin/cancel %p-%j queuepause command = /usr/bin/disable %p queueresume command = /usr/bin/enable %p [homes] comment = Home Directories path = /home/%u/samba writeable = Yes browseable = No available = No [printers] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = Yes printable = Yes print command = lpr-cups -P %p -o raw %s -r lpq command = lpstat -o %p lprm command = cancel %p-%j browseable = No available = No [public] comment = Public Directory path = /home/samba force user = wsst force group = wsst writeable = Yes Joe Doherty Web Support Services Team AppliedTheory Corporation http://www.appliedtheory.com/ (315)453-2912 ext. 5726 E-Mail: jdoherty@appliedtheory.com
MCCALL,DON (HP-USA,ex1)
2001-May-08 15:57 UTC
tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)
Hi Joe, This problem is due to everyone needing to connect to the IPC$ service for browsing. Every 'service' must have a path, and in the code, the path for IPC$ (which is a special service) is set to be either whatever the environment variable TMPDIR was at the time smbd was run OR /tmp, if the TMPDIR environment variable is not defined. so when a user comes in to browse (ie doubleclicking the machine name in network neighborhood, or executing \\servername in the run menu from 'start'), when smbd attempts to vfs_ChDir to /tmp (or in your case /root/tmp) as anyone other than root, then the unix permissions cause this to fail. Typically /tmp is a GOOD default, as it is generally a garbage collection directory that everyone has access to. Try setting the environment variable TMPDIR=/tmp (or whatever other directory you want, that you can guarantee all users have access to) before you start nmbd/smbd. That should do the trick for you... Hope this helps, Don "Reason, not volume, is the primary differentiator between a discussion, and an argument." -----Original Message----- From: Joe Doherty [mailto:jdoherty@appliedtheory.com] Sent: Saturday, May 05, 2001 2:21 PM To: samba@lists.samba.org Subject: tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.) Hi all, I have been receiving the error "tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)" for a while and I finally fixed it, but I have some questions about why it was happening. Firstly, it is Samba 2.0.7 running on Mandrake 8.0. My smb.conf file is at the end of this message. The machine's name is pinhead and in checking log.pinhead, I noticed that it kept saying that access was denied to /root/tmp. Nowhere is /root/tmp mentioned in smb.conf. I was able to access the shares directly all along, but I couldn't browse the server. By making /root executable by all and /root/tmp readable and executable by all, I am now able to browse the server. My questions are: 1. Why does /root/tmp have anything to do with connecting to the box to browse the shares? Where and how can I change that to a more innocuous directory? 2. Why, with [homes] enabled, am I able to see the share [homes] as well as a share of the username logged in, both pointing to the same directory? If I disable [homes], I can still see the username share and it is affected by any options set for [homes]. Any help is greatly appreciated, I am fairly new to samba and these little problems have really thrown me for a loop... --- smb.conf: # Samba config file created using SWAT # from [hostname and IP removed] # Date: 2001/05/05 13:50:26 # Global parameters [global] workgroup = WSST netbios name = PINHEAD server string = Samba Server %v encrypt passwords = Yes restrict anonymous = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = lpstat dns proxy = No printing = cups print command = /usr/bin/lp -d%p -oraw %s; rm %s lpq command = /usr/bin/lpstat -o%p lprm command = /usr/bin/cancel %p-%j queuepause command = /usr/bin/disable %p queueresume command = /usr/bin/enable %p [homes] comment = Home Directories path = /home/%u/samba writeable = Yes browseable = No available = No [printers] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = Yes printable = Yes print command = lpr-cups -P %p -o raw %s -r lpq command = lpstat -o %p lprm command = cancel %p-%j browseable = No available = No [public] comment = Public Directory path = /home/samba force user = wsst force group = wsst writeable = Yes Joe Doherty Web Support Services Team AppliedTheory Corporation http://www.appliedtheory.com/ (315)453-2912 ext. 5726 E-Mail: jdoherty@appliedtheory.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba