[Samba] Win2K3 ADS and Samba 3.0.1: Cannot access shares even with
IP
Brian Spiegel
BSpiegel at Matchnet.com
Wed Jan 7 00:33:31 GMT 2004
Regarding the problem where you cannot view shares using the hostname
(netbios) of the server, but can if you use the IP address: I can view my
Samba shares from a Win2000 server using the IP, but I cannot access them.
Double-clicking on the shares in Windows Explorer results in the following
error:
'\\<ipaddr>\Share is not accessible. The network name cannot be found.'
The smbd logs show the following lines:
[2004/01/06 14:54:27, 0] smbd/service.c:make_connection_snum(677)
'/home/username/sharedirectory/' does not exist or is not a directory,
when connecting to [Share]
...
[2004/01/06 14:54:27, 3] smbd/error.c:error_packet(94)
error string = Permission denied
[2004/01/06 14:54:27, 3] smbd/error.c:error_packet(118)
error packet at smbd/reply.c(286) cmd=117 (SMBtconX)
NT_STATUS_BAD_NETWORK_NAME
Here's the related code snippet from smbd/service.c:
smbd/service.c:make_connection_snum:
#if CHECK_PATH_ON_TCONX
/* win2000 does not check the permissions on the directory
during the tree connect, instead relying on permission
check during individual operations. To match this behaviour
I have disabled this chdir check (tridge) */
if (vfs_ChDir(conn,conn->connectpath) != 0) {
DEBUG(0,("%s (%s) Can't change directory to %s (%s)\n",
get_remote_machine_name(), conn->client_address,
conn->connectpath,strerror(errno)));
change_to_root_user();
yield_connection(conn, lp_servicename(SNUM(conn)));
conn_free(conn);
*status = NT_STATUS_BAD_NETWORK_NAME;
return NULL;
}
#else
/* the alternative is just to check the directory exists */
if (stat(conn->connectpath, &st) != 0 || !S_ISDIR(st.st_mode)) {
DEBUG(0,("'%s' does not exist or is not a directory, when connecting
to
[%s]\n", conn->connectpath, lp_servicename(SNUM(conn))));
change_to_root_user();
yield_connection(conn, lp_servicename(SNUM(conn)));
conn_free(conn);
*status = NT_STATUS_BAD_NETWORK_NAME;
return NULL;
}
#endif
I've made sure the directories on Linux have full permissions and exist, but
smbd seems to think they don't.
$ ls -ld samba_setup/
drwxrwxrwx 2 username users 4096 Nov 12 12:41 sharedirectory/
>From smb.conf:
[Share]
comment = Samba Configuration Test Share
path = /home/username/sharedirectory/
read only = no
browsable = yes
writable = yes
guest ok = yes
Under what conditions does the CHECK_PATH_ON_TCONX code get compiled instead
of the directory check? The server I'm attempting to connect from is
Win2000. Is there a compile configuration option that I missed somewhere?
Thanks,
Brian
-----Original Message-----
From: Gerald (Jerry) Carter [mailto:jerry at samba.org]
Sent: Tuesday, January 06, 2004 12:57 PM
To: Brian Spiegel
Subject: Re: [Samba] Samba requesting nonexistent keytab type?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Brian Spiegel wrote:
| Will you be providing a source package for the 3.0.2pre1 release
| or will we only be able to access that from CVS?
I'm working on the source release for 3.0.2pre1 now.
| And as far as downloading from CVS I want the SAMBA_3_0 tree, correct?
Yup. The patch is trivial though. Try this.
cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/+yEPIR7qMdg1EfYRAur4AKDHWk67ekCysgrrGEm2Qodu0WMZFACgsnrJ
GMsA0xf0mby8OYu4ScxIeoU=
=Saie
-----END PGP SIGNATURE-----
More information about the samba
mailing list