Server problem - Temporary directory set wrong?

Dave Townsend dave at brass-bullet.co.uk
Tue Dec 11 03:55:02 GMT 2001


Hi there,

I am experiencing some odd behaviour with my samba server (version 2.0.7
running on mandrake 8.0). The server comes up ok and appears on the browse
list, but you cannot list the shares on it. The following error shows up
when I use smbclient -L:

tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree
connect.)

I think I have figured out what is going wrong from the log files. Just
after the login has been authorised, samba attempts to change to a directory
(I presume for holding some temporary files relating to the connection). On
a different server that I have this works fine and it changes to the /tmp
directory. On the server that is failing though it seems to be trying to use
/root/tmp which it does not have permission to access. The snippet from the
log file is here:

[2001/12/11 11:50:17, 3] smbd/password.c:authorise_login(816)
  ACCEPTED: guest account and guest ok
[2001/12/11 11:50:17, 3] smbd/service.c:make_connection(441)
  Connect path is /root/tmp
[2001/12/11 11:50:17, 3] lib/doscalls.c:dos_ChDir(333)
  dos_ChDir to /root/tmp
[2001/12/11 11:50:17, 0] smbd/service.c:make_connection(501)
  Can't change directory to /root/tmp (Permission denied)
[2001/12/11 11:50:17, 3] smbd/error.c:error_packet(133)
  error packet at line 166 cmd=117 (SMBtconX) eclass=2 ecode=6
[2001/12/11 11:50:17, 3] smbd/error.c:error_packet(143)
  error string = Permission denied

Hopefully someone out there can let me know how to change what directory
samba tries to use for whatever it is doing.

Thanks in advance...

Dave

----------------------
Mr. Dave Townsend
Research Engineer
Brass Bullet Ltd
Pemchurch Chambers
30-32 Cradock Street
Swansea
SA1 3EP
Phone:   +44(1792) 417227
Fax:     +44(8700) 558729
Website: www.brass-bullet.co.uk






More information about the samba mailing list