LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba 3.2.5: share "does not exist or permission denied when connecting to [...]" (http://www.linuxquestions.org/questions/linux-server-73/samba-3-2-5-share-does-not-exist-or-permission-denied-when-connecting-to-%5B-%5D-823647/)

diagnoe 08-02-2010 04:48 PM

Samba 3.2.5: share "does not exist or permission denied when connecting to [...]"
 
Samba 3.2.5: can access /home/user but nothing on /mnt/md0/samba/...
Error message from samba: "'/mnt/md0/samba/homes/thomas' does not exist or permission denied when connecting to [thomas] Error was Permission denied"


Hello Everybody

I'm getting really frustrated here and need some help getting something to work.

Situation:
I recently configured a new server since our old one got really old and had to be replaced. I therefore moved from FC5 to debian (I've grown up with Redhat and fedora, just getting used to debian). Since I trimmed down the services I need, the new server basically only does function as a samba workgroup server. No firewall or SElinux is configured (firewall is external and as far as I know, SElinux is not even installed).

Several users need access to their files on the samba. As you will see in the samba config-file, every user has its home directory and has access to a common share (called "shared").

Configuration:
The system has 5 hard drives that run in 2 raid-1 formations: 2 Drives form the system partitions and 3 drives are for user data (md0).
Code:

server2:~# df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/md1      ext3    7.4G  2.0G  5.1G  29% /
tmpfs        tmpfs    1.7G    0  1.7G  0% /lib/init/rw
udev        tmpfs    10M  784K  9.3M  8% /dev
tmpfs        tmpfs    1.7G    0  1.7G  0% /dev/shm
/dev/md0      ext3    92M  21M  66M  24% /boot
/dev/md3      ext3    221G  188M  210G  1% /mnt/data
/dev/md4      ext3    587G  178G  380G  32% /mnt/md0
server2:~#

Samba:
To be sure the new configuration would work, I did not just take over the old configuration from the FC5 server, but filled in everything anew.
Code:

server2:~# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[shared]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = Workgroup
        netbios name = Workgroup-SERVER
        server string = Workgroup Samba Server
        obey pam restrictions = Yes
        log level = 3
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        create mask = 0775
        directory mask = 0775
        browseable = No
        vfs objects = recycle
        recycle:exclude_dir = /tmp Papierkorb
        recycle:exclude = *.tmp ~$* *.~?? *Temp.0
        recycle:maxsixe = 0
        recycle:versions = Yes
        recycle:touch = Yes
        recycle:keeptree = Yes
        recycle:repository = Papierkorb

[shared]
        path = /mnt/md0/samba/shared
        valid users = @workgroup
        write list = @workgroup
        read only = No
        create mask = 0774
        directory mask = 0775
        vfs objects = recycle
        recycle:directory_mode = 0770
        recycle:exclude_dir = /tmp Papierkorb
        recycle:exclude = *.tmp ~$* *.~?? *Temp.0
        recycle:maxsixe = 0
        recycle:versions = Yes
        recycle:touch = Yes
        recycle:keeptree = Yes
        recycle:repository = Papierkorb
server2:~#

My Problem
As it is configured right now, I cannot access the share "shared" at all (to simplify, I will try everything with the user "thomas") or any user home-folder located on the same drive as shared. But home folders on the root share (/ --> /home/sysadmin) are accessible. Trying to access it from the old linux server, this is what I get as a response:
Code:

[root@server-old ~]# smbclient -U thomas //192.168.0.2/shared
Password:
Domain=[Workgroup-SERVER] OS=[Unix] Server=[Samba 3.2.5]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[root@server-old ~]#

The same happens, if I try to connect to thomas' home directory, which is normally located in /mnt/md0/samba/homes/thomas. BUT if this home directory is located in /mnt/home/thomas, the connection CAN be established (user sysadmin still has his home directory in that place).

So basically: samba does seem to work, home directories located on the / partition can be accessed, everything in /mnt/md0/... cannot. I checked the logs, users do get the correct user IDs and group IDs. This is also supported by the fact, that the login to the home directory in /home/user does work.

The users use Windows XP / Win7 machines. In explorer, they do see the shares they have permission to, but they cannot access them, getting an error that sounds something like "wrong network path".

What I did so far:
I checked the paths, even though they looked alright, I copied them from pwd to the config, just to be sure. I made sure, that the login works (as described above). I made sure, that permissions were not the problem (right now, total control: chmod -R 777 /mnt/md0/samba/shared; chown -R root:workgroup /mnt/md0/samba/shared)

Please do help me out figure out what is wrong here, I really tried my best to have everything work. But again, something just got messed up. I have found some simmilar problems, but those were usually resolved by switching of SElinux, which I don't think I have even installed (does debian maybe have something simmilar?)

Some more info that usually gets asked in other posts

/var/log/messages does not display any errors

Code:

[root@server-old ~]# smbclient -U thomas -L 192.168.0.2
Password:
Domain=[Workgroup-SERVER] OS=[Unix] Server=[Samba 3.2.5]

        Sharename      Type      Comment
        ---------      ----      -------
        shared          Disk
        IPC$            IPC      IPC Service (Workgroup Samba Server)
        thomas          Disk      Home Directories
Domain=[Workgroup-SERVER] OS=[Unix] Server=[Samba 3.2.5]

        Server              Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        Workgroup                Workgroup-SERVER
[root@server-old ~]#

Code:

server2:~# testparm /etc/samba/smb.conf thomas 192.168.0.55
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[shared]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Allow connection from thomas (192.168.0.55) to homes
Allow connection from thomas (192.168.0.55) to shared
server2:~#

Code:

[root@server-old ~]# smbclient -U thomas //192.168.0.2/shared
Password:
Domain=[Workgroup-SERVER] OS=[Unix] Server=[Samba 3.2.5]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[root@server-old ~]# smbclient -U sysadmin //192.168.0.2/shared
Password:
Domain=[Workgroup-SERVER] OS=[Unix] Server=[Samba 3.2.5]
tree connect failed: NT_STATUS_ACCESS_DENIED
//This is correct, sysadmin does not belong to the group workgroup, therefore no access to shared
[root@server-old ~]# smbclient -U sysadmin //192.168.0.2/sysadmin
Password:
Domain=[Workgroup-SERVER] OS=[Unix] Server=[Samba 3.2.5]
smb: \> exit
[root@server-old ~]# smbclient -U thomas //192.168.0.2/thomas
Password:
Domain=[Workgroup-SERVER] OS=[Unix] Server=[Samba 3.2.5]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[root@server-old ~]#

Trying locally:

Code:

server2:~# smbclient -U thomas //localhost/shared
Enter thomas's password:
Domain=[Workgroup-SERVER] OS=[Unix] Server=[Samba 3.2.5]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
server2:~#

Trying to connect to the home share "thomas"; samba-machine-log:

Code:

[2010/08/02 23:20:33,  3] auth/auth.c:check_ntlm_password(220)
  check_ntlm_password:  Checking password for unmapped user [Workgroup]\[thomas]@[Workgroup-SERVER] with the new password interface
[2010/08/02 23:20:33,  3] auth/auth.c:check_ntlm_password(223)
  check_ntlm_password:  mapped user is: [Workgroup-SERVER]\[thomas]@[Workgroup-SERVER]
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] auth/auth.c:check_ntlm_password(269)
  check_ntlm_password: sam authentication for user [thomas] succeeded

[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  2] auth/auth.c:check_ntlm_password(308)
  check_ntlm_password:  authentication for user [thomas] -> [thomas] -> [thomas] succeeded

[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] groupdb/mapping.c:pdb_create_builtin_alias(786)
  pdb_create_builtin_alias: Could not get a gid out of winbind
[2010/08/02 23:20:33,  2] auth/token_util.c:create_local_nt_token(385)
  WARNING: Failed to create BUILTIN\Administrators group!  Can Winbind allocate gids?
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] groupdb/mapping.c:pdb_create_builtin_alias(786)
  pdb_create_builtin_alias: Could not get a gid out of winbind
[2010/08/02 23:20:33,  2] auth/token_util.c:create_local_nt_token(413)
  WARNING: Failed to create BUILTIN\Users group! Can Winbind allocate gids?
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] lib/privileges.c:get_privileges(63)
  get_privileges: No privileges assigned to SID [S-1-5-21-706314974-3066363100-3545244619-3004]
[2010/08/02 23:20:33,  3] lib/privileges.c:get_privileges(63)
  get_privileges: No privileges assigned to SID [S-1-22-2-1001]
[2010/08/02 23:20:33,  3] lib/privileges.c:get_privileges(63)
  get_privileges: No privileges assigned to SID [S-1-5-2]
[2010/08/02 23:20:33,  3] lib/privileges.c:get_privileges(63)
  get_privileges: No privileges assigned to SID [S-1-5-11]
[2010/08/02 23:20:33,  3] libsmb/ntlmssp_sign.c:ntlmssp_sign_init(337)
  NTLMSSP Sign/Seal - Initialising with flags:
[2010/08/02 23:20:33,  3] libsmb/ntlmssp.c:debug_ntlmssp_flags(62)
  Got NTLMSSP neg_flags=0x60080215
[2010/08/02 23:20:33,  3] smbd/password.c:register_existing_vuid(314)
  register_existing_vuid: User name: thomas    Real name:
[2010/08/02 23:20:33,  3] smbd/password.c:register_existing_vuid(326)
  register_existing_vuid: UNIX uid 1002 is UNIX user thomas, and will be vuid 100
[2010/08/02 23:20:33,  3] smbd/password.c:register_existing_vuid(350)
  Adding homes service for user 'thomas' using home directory: '/mnt/md0/samba/homes/thomas'
[2010/08/02 23:20:33,  3] param/loadparm.c:lp_add_home(5886)
  adding home's share [thomas] for user 'thomas' at '/mnt/md0/samba/homes/thomas'

[2010/08/02 23:20:33,  3] smbd/process.c:process_smb(1570)
  Transaction 3 of length 90 (0 toread)
[2010/08/02 23:20:33,  3] smbd/process.c:switch_message(1374)
  switch message SMBtconX (pid 3431) conn 0x0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/service.c:make_connection_snum(944)
  Connect path is '/tmp' for service [IPC$]
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(249)
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(252)
  se_access_check: user sid is S-1-5-21-706314974-3066363100-3545244619-3004
  se_access_check: also S-1-22-2-1001
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2010/08/02 23:20:33,  3] smbd/vfs.c:vfs_init_default(96)
  Initialising default vfs hooks
[2010/08/02 23:20:33,  3] smbd/vfs.c:vfs_init_custom(130)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(249)
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(252)
  se_access_check: user sid is S-1-5-21-706314974-3066363100-3545244619-3004
  se_access_check: also S-1-22-2-1001
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (1002, 1001) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/service.c:make_connection_snum(1198)
  Workgroup-server (::ffff:192.168.0.7) connect to service IPC$ initially as user thomas (uid=1002, gid=1001) (pid 3431)

[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/reply.c:reply_tcon_and_X(727)
  tconX service=IPC$
[2010/08/02 23:20:33,  3] smbd/process.c:process_smb(1570)
  Transaction 4 of length 114 (0 toread)
[2010/08/02 23:20:33,  3] smbd/process.c:switch_message(1374)
  switch message SMBtrans2 (pid 3431) conn 0x8670218
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (1002, 1001) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/msdfs.c:get_referred_path(789)
  get_referred_path: |thomas| in dfs path \192.168.0.2\thomas is not a dfs root.
[2010/08/02 23:20:33,  3] smbd/error.c:error_packet_set(61)
  error packet at smbd/trans2.c(7210) cmd=50 (SMBtrans2) NT_STATUS_NOT_FOUND
[2010/08/02 23:20:33,  3] smbd/process.c:process_smb(1570)
  Transaction 5 of length 39 (0 toread)
[2010/08/02 23:20:33,  3] smbd/process.c:switch_message(1374)
  switch message SMBtdis (pid 3431) conn 0x8670218
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/service.c:close_cnum(1409)
  Workgroup-server (::ffff:192.168.0.7) closed connection to service IPC$
[2010/08/02 23:20:33,  3] smbd/connection.c:yield_connection(31)
  Yielding connection to IPC$
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/process.c:process_smb(1570)
  Transaction 6 of length 96 (0 toread)
[2010/08/02 23:20:33,  3] smbd/process.c:switch_message(1374)
  switch message SMBtconX (pid 3431) conn 0x0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] lib/util_sid.c:string_to_sid(228)
  string_to_sid: Sid thomas does not start with 'S-'.
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/service.c:make_connection_snum(944)
  Connect path is '/mnt/md0/samba/homes/thomas' for service [thomas]
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(249)
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(252)
  se_access_check: user sid is S-1-5-21-706314974-3066363100-3545244619-3004
  se_access_check: also S-1-22-2-1001
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2010/08/02 23:20:33,  3] smbd/vfs.c:vfs_init_default(96)
  Initialising default vfs hooks
[2010/08/02 23:20:33,  3] smbd/vfs.c:vfs_init_custom(130)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2010/08/02 23:20:33,  3] smbd/vfs.c:vfs_init_custom(130)
  Initialising custom vfs hooks from [recycle]
[2010/08/02 23:20:33,  2] lib/module.c:do_smb_load_module(64)
  Module '/usr/lib/samba/vfs/recycle.so' loaded
[2010/08/02 23:20:33,  3] lib/util_sid.c:string_to_sid(228)
  string_to_sid: Sid thomas does not start with 'S-'.
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:push_sec_ctx(224)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/uid.c:push_conn_ctx(357)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:pop_sec_ctx(432)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(249)
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(252)
  se_access_check: user sid is S-1-5-21-706314974-3066363100-3545244619-3004
  se_access_check: also S-1-22-2-1001
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(249)
[2010/08/02 23:20:33,  3] lib/util_seaccess.c:se_access_check(252)
  se_access_check: user sid is S-1-5-21-706314974-3066363100-3545244619-3004
  se_access_check: also S-1-22-2-1001
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (1002, 1001) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  0] smbd/service.c:make_connection_snum(1160)
  '/mnt/md0/samba/homes/thomas' does not exist or permission denied when connecting to [thomas] Error was Permission denied

[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/connection.c:yield_connection(31)
  Yielding connection to thomas
[2010/08/02 23:20:33,  3] smbd/error.c:error_packet_set(61)
  error packet at smbd/reply.c(662) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME
[2010/08/02 23:20:33,  3] smbd/process.c:smbd_process(2068)
  receive_message_or_smb failed: NT_STATUS_END_OF_FILE, exiting
[2010/08/02 23:20:33,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/08/02 23:20:33,  3] smbd/connection.c:yield_connection(31)
  Yielding connection to
[2010/08/02 23:20:33,  3] smbd/server.c:exit_server_common(949)
  Server exit (normal exit)


luvshines 09-29-2010 10:01 AM

You wrote:
"/mnt/md0/samba/homes/thomas. BUT if this home directory is located in /mnt/home/thomas"

Can you check the permissions of all the directories upto / ?

Each of the directory should have Read and execute permission(755) for the shares to be accessible

diagnoe 10-01-2010 03:23 AM

Finally somebody replied :-) Thanks for that, I'm very close to putting fedora on that thing.

Alright, the permissions from / on:

Code:

/mnt: drwxr-xr-x  7 root root  4096 2010-05-18 11:39 mnt

/mnt/md0: drwxr-xr-x  5 root root 4096 2010-07-06 00:57 md0

/mnt/md0/samba: drwx------ 6 root root  4096 2010-07-06 03:55 samba (I'll try to change that, this might be the problem then)

directories in /mnt/md0/samba:
drwxr-xr-x 11 root root 4096 2008-01-21 09:27 homes
drwxr-xr-x  2 root root 4096 2006-07-28 10:26 netlogon
drwxr-xr-x 10 root root 4096 2006-09-06 21:21 profiles
drwxrwxrwx 13 root vhca 4096 2010-06-22 16:02 shared

I'll try to change the permissions on samba and get back with the results

diagnoe 10-01-2010 03:51 AM

Quote:

Originally Posted by luvshines (Post 4112687)
You wrote:
"/mnt/md0/samba/homes/thomas. BUT if this home directory is located in /mnt/home/thomas"

Can you check the permissions of all the directories upto / ?

Each of the directory should have Read and execute permission(755) for the shares to be accessible

Gosh, I knew it would be something really simple. It worked! I must have overlooked that, stupid me!

Thanks a lot!


All times are GMT -5. The time now is 08:11 PM.