tree connect failed: ERRSRV - ERRinvnetname (Invalid network
name in tree connect.)
Joe Doherty
jdoherty at appliedtheory.com
Sat May 5 18:21:05 GMT 2001
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 at appliedtheory.com
More information about the samba
mailing list