[Samba] Fwd: Unable to access shares with capital letters in OpenSUSE 11.0 using samba-3.2.4

prasanna lakshmi a.prasanna.lakshmi at gmail.com
Fri Dec 11 05:47:55 MST 2009


Hi All,

I installed OpenSUSE 11.0, updated samba server to 3.2.4 version.

Added two users in linux and samba with user names "test1" and "Test2".
(Please note the capital letter in Test2).
Created two shares in /srv/samba/shares "test1" and "Test2". The permissions
of the shares are as below.

drwx------ 2 test1 users 4096 2009-12-11 12:42 test1
drwx------ 2 Test2 users 4096 2009-12-11 12:41 Test2

I am using RTSM SDK for accessing the shares.

I am able to access share "test1" as user "test1". But when accessing
"Test2" I am receiving a BAD_NETWORK_NAME error.

Below is the output of log.smbd file :

2009/12/11 12:39:15,  0] smbd/service.c:make_connection_snum(1160)
  '/hsrv/samba/shares/test1' does not exist or permission denied when
connecting to [test1] Error was No such file or directory
[2009/12/11 12:39:15,  0] smbd/service.c:make_connection_snum(1160)
  '/hsrv/samba/shares/test1' does not exist or permission denied when
connecting to [test1] Error was No such file or directory
[2009/12/11 12:41:02,  0] smbd/server.c:main(1209)
  smbd version 3.2.4-4.7-2210-SUSE-SL11.0 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/12/11 12:41:11,  1] smbd/service.c:make_connection_snum(1198)
  _smbserver (::ffff:10.232.112.143) connect to service test1 initially as
user test1 (uid=1001, gid=100) (pid 14008)
[2009/12/11 12:41:11,  0] lib/util_sock.c:read_socket_with_timeout(939)
[2009/12/11 12:41:11,  0] lib/util_sock.c:get_peer_addr_internal(1607)
  getpeername failed. Error was Transport endpoint is not connected
  read_socket_with_timeout: client 0.0.0.0 read error = Connection reset by
peer.
[2009/12/11 12:41:11,  1] smbd/service.c:close_cnum(1409)
  _smbserver (::ffff:10.232.112.143) closed connection to service test1
[2009/12/11 12:42:25,  1] smbd/service.c:make_connection_snum(1198)
  _smbserver (::ffff:10.232.112.143) connect to service test1 initially as
user test1 (uid=1001, gid=100) (pid 14020)
[2009/12/11 12:42:25,  0] lib/util_sock.c:read_socket_with_timeout(939)
[2009/12/11 12:42:25,  0] lib/util_sock.c:get_peer_addr_internal(1607)
  getpeername failed. Error was Transport endpoint is not connected
  read_socket_with_timeout: client 0.0.0.0 read error = Connection reset by
peer.
[2009/12/11 12:42:25,  1] smbd/service.c:close_cnum(1409)
  _smbserver (::ffff:10.232.112.143) closed connection to service test1


[2009/12/11 13:34:32,  1] smbd/service.c:make_connection_snum(1198)
  b22307-01 (::ffff:10.232.112.54) connect to service Test2 initially as
user Test2 (uid=1002, gid=100) (pid 14173)
smbd version 3.2.4-4.7-2210-SUSE-SL11.0 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/12/11 14:59:38,  0] smbd/service.c:make_connection(1370)
  _smbserver (::ffff:10.232.112.143) couldn't find service test2

As the log shows it is trying to find a share with "test2" instead of
"Test2" and is failing.

If I add a line "username level = 1" to the smb.conf file I am able to
access the share.

If I am right, the smb.conf man page says that, default value for username
level is 0; meaning the samba server will try to find the user with all
lowercase/uppercase/first letter capitalized name combinations.
But looks like in SUSE this is handled differently.

I tried with the same setup in Ubuntu 7.0, and I am able to access the share
with "usernme level = 0" (default) value in smb.conf.

Please find the smb.conf file attached.

My question is
1. Is the username level option handled differently in OpenSUSE? If yes,
please suggest any links where i can confirm this...
2. Is the samba server version (3.2.4) handling this differently. I do not
suspect this since samba version I used with Ubuntu is 3.3.6.

Thanks in advance for all the help....

 Thanks,
*Lakshmi Prasanna,*


More information about the samba mailing list