Can connect to Samba, but access denied to homes

Posted by user893730 on Server Fault See other posts from Server Fault or by user893730
Published on 2012-07-24T20:28:39Z Indexed on 2013/11/05 9:58 UTC
Read the original article Hit count: 310

Filed under:
|

I can connect to the samba server using both IP address and server name, and I can see the home folder name, but can't connect to it

smb.cnf

[global]
    workgroup = WORKGROUP
    server string = Venus
    wins support = no
    read only = no
    browsable = yes
    create mode = 0777
    directory mode = 0777
    case sensitive = no
    dns proxy = no
    interfaces = 127.0.0.1/8 eth0
    bind interfaces only = yes
    log file = /var/log/samba/log.%m
    max log size = 1000
    syslog = 0
    security = user
    encrypt passwords = true
    passdb backend = smbpasswd
    obey pam restrictions = yes
    unix password sync = no
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    pam password change = no


[homes]
   comment = User Directories
   path = /data/localdevs/%u
   public = no
   browsable = yes
   writable = yes

the /etc/samba folder has the following files in it

lmhosts  smb.conf  smb.conf.orig  smbusers

The output of "sudo pdbedit -L" is

user1:500:

ls -abl /data/localdevs/

drwxr-xr-x. 4 user1 user1 4096 Jul 24 17:35 user1

These are what samba logs are showing when I get the access denied to user1's home directory

[2012/07/24 20:27:08.599216,  3] smbd/process.c:1489(process_smb)
  Transaction 24 of length 90 (0 toread)
[2012/07/24 20:27:08.599350,  3] smbd/process.c:1298(switch_message)
  switch message SMBntcreateX (pid 2440) conn 0x7f6758780c00
[2012/07/24 20:27:08.599373,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2012/07/24 20:27:08.599412,  3] smbd/vfs.c:881(check_reduced_name)
  check_reduced_name [.] [/data/localdevs/user1]
[2012/07/24 20:27:08.599485,  3] smbd/vfs.c:1038(check_reduced_name)
  check_reduced_name: . reduced to /data/localdevs/user1
[2012/07/24 20:27:08.599508,  3] smbd/vfs.c:881(check_reduced_name)
  check_reduced_name [.] [/data/localdevs/user1]
[2012/07/24 20:27:08.599552,  3] smbd/vfs.c:1038(check_reduced_name)
  check_reduced_name: . reduced to /data/localdevs/user1
[2012/07/24 20:27:08.599581,  3] smbd/dosmode.c:166(unix_mode)
  unix_mode(.) returning 0766
[2012/07/24 20:27:08.599643,  3] smbd/vfs.c:881(check_reduced_name)
  check_reduced_name [.] [/data/localdevs/user1]
[2012/07/24 20:27:08.599668,  3] smbd/vfs.c:1038(check_reduced_name)
  check_reduced_name: . reduced to /data/localdevs/user1
[2012/07/24 20:27:08.599707,  4] smbd/open.c:1990(open_file_ntcreate)
  calling open_file with flags=0x0 flags2=0x0 mode=0766, access_mask = 0x81, open_access_mask = 0x81
[2012/07/24 20:27:08.599806,  3] smbd/open.c:467(open_file)
  Error opening file . (NT_STATUS_ACCESS_DENIED) (local_flags=0) (flags=0)
[2012/07/24 20:27:08.599838,  3] smbd/error.c:80(error_packet_set)
  error packet at smbd/error.c(160) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2012/07/24 20:27:08.604075,  3] smbd/process.c:1489(process_smb)
  Transaction 25 of length 90 (0 toread)
[2012/07/24 20:27:08.604193,  3] smbd/process.c:1298(switch_message)
  switch message SMBntcreateX (pid 2440) conn 0x7f6758780c00
[2012/07/24 20:27:08.604216,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2012/07/24 20:27:08.604268,  3] smbd/vfs.c:881(check_reduced_name)
  check_reduced_name [.] [/data/localdevs/user1]
[2012/07/24 20:27:08.604336,  3] smbd/vfs.c:1038(check_reduced_name)
  check_reduced_name: . reduced to /data/localdevs/user1
[2012/07/24 20:27:08.604395,  3] smbd/vfs.c:881(check_reduced_name)
  check_reduced_name [.] [/data/localdevs/user1]
[2012/07/24 20:27:08.604419,  3] smbd/vfs.c:1038(check_reduced_name)
  check_reduced_name: . reduced to /data/localdevs/user1
[2012/07/24 20:27:08.604442,  3] smbd/dosmode.c:166(unix_mode)
  unix_mode(.) returning 0766
[2012/07/24 20:27:08.604532,  3] smbd/vfs.c:881(check_reduced_name)
  check_reduced_name [.] [/data/localdevs/user1]
[2012/07/24 20:27:08.604554,  3] smbd/vfs.c:1038(check_reduced_name)
  check_reduced_name: . reduced to /data/localdevs/user1
[2012/07/24 20:27:08.604583,  4] smbd/open.c:1990(open_file_ntcreate)
  calling open_file with flags=0x0 flags2=0x0 mode=0766, access_mask = 0x81, open_access_mask = 0x81
[2012/07/24 20:27:08.604679,  3] smbd/open.c:467(open_file)
  Error opening file . (NT_STATUS_ACCESS_DENIED) (local_flags=0) (flags=0)
[2012/07/24 20:27:08.604705,  3] smbd/error.c:80(error_packet_set)
  error packet at smbd/error.c(160) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2012/07/24 20:27:08.606977,  3] smbd/process.c:1489(process_smb)
  Transaction 26 of length 80 (0 toread)
[2012/07/24 20:27:08.607096,  3] smbd/process.c:1298(switch_message)
  switch message SMBtrans2 (pid 2440) conn 0x7f6758780c00
[2012/07/24 20:27:08.607119,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2012/07/24 20:27:08.607139,  3] smbd/trans2.c:5100(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2012/07/24 20:27:08.607162,  3] smbd/vfs.c:881(check_reduced_name)
  check_reduced_name [.] [/data/localdevs/user1]
[2012/07/24 20:27:08.607184,  3] smbd/vfs.c:1038(check_reduced_name)
  check_reduced_name: . reduced to /data/localdevs/user1
[2012/07/24 20:27:08.607208,  3] smbd/trans2.c:5226(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo . (fnum = -1) level=1004 call=5 total_data=0
[2012/07/24 20:27:08.608306,  3] smbd/process.c:1489(process_smb)
  Transaction 27 of length 80 (0 toread)
[2012/07/24 20:27:08.608362,  3] smbd/process.c:1298(switch_message)
  switch message SMBtrans2 (pid 2440) conn 0x7f6758780c00
[2012/07/24 20:27:08.608383,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2012/07/24 20:27:08.608403,  3] smbd/trans2.c:5100(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1005
[2012/07/24 20:27:08.608439,  3] smbd/vfs.c:881(check_reduced_name)
  check_reduced_name [.] [/data/localdevs/user1]
[2012/07/24 20:27:08.608461,  3] smbd/vfs.c:1038(check_reduced_name)
  check_reduced_name: . reduced to /data/localdevs/user1
[2012/07/24 20:27:08.608484,  3] smbd/trans2.c:5226(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo . (fnum = -1) level=1005 call=5 total_data=0

© Server Fault or respective owner

Related posts about centos

Related posts about samba

  • Unable to connect to Samba printer

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I have a headless Ubuntu 12.04 server for files and printers. It shares files via Samba just fine. However, the HP PSC-750xi connected to the server via USB is not accessible from my Ubuntu 12.04 laptop. I can browse for it in the Printing control panel, but any attempt to authenticate my ID to the… >>> More

  • Samba folder is gone

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I seem to have some issues sharing folders from my Ubuntu 12.04 machine to a Win7 machine. After playing around with the settings, I decided to revert to Samba's original setting by reinstalling it: sudo apt-get purge samba sudo rm -rf /etc/samba/ /etc/default/samba sudo apt-get install samba just… >>> More

  • Samba on OS X 10.6.4

    as seen on Server Fault - Search for 'Server Fault'
    I just updated from 10.6.3 to 10.6.4, and now my Samba shares won't mount and won't allow access into the directories. In the logs, I've started to get the following errors, any idea what might have gone wrong? 2010/06/25 15:54:27, 0, pid=13848] /SourceCache/samba/samba-235.4/samba/source/passdb/secrets… >>> More

  • OpenLDAP and Samba, can't log onto Samba share from Windows

    as seen on Server Fault - Search for 'Server Fault'
    The former jackass IT-guy that I'm taking over for had a Samba share setup on a Fedora server that uses our OpenLDAP server to authenticate users who want to log in from Windows. We recently added a new employee and I jumped through the LDAP hoops to add them to the system. However, I can't seem… >>> More

  • Windows 7 Samba issue

    as seen on Server Fault - Search for 'Server Fault'
    We have a strange samba issue affecting only one user. Our samba setup is as follow : Red Hat Enterprise Linux Server release 5.4 (Tikanga) - Samba Server Samba version 3.0.33-3.14.el5 - Samba version Domain Controller WIN2008R2 Standard -… >>> More