On Sun, 2011-10-16 at 21:30 -0700, Todd And Margo Chester wrote:
Hi All,

# rpm -qa \*samba\*
samba-client-3.5.6-86.el6_1.4.x86_64
samba-common-3.5.6-86.el6_1.4.x86_64
samba-3.5.6-86.el6_1.4.x86_64
samba-winbind-clients-3.5.6-86.el6_1.4.x86_64

I am trying to migrate my CentOS 5.6 Samba configure to my new
SL 6.1 server.

  From both Windows XP KVM guest and Linux's smbclient, I can
see the shares, but when I try to go into the shares I get:

       smbclient: NT_STATUS_ACCESS_DENIED
       XP Guest:  Access is denied

You will note that Samba lets me log in with smbclient and
let me see the shares in XP without a password prompt (both
passwords are the same on the host and guest side).

And my user name is in /var/lib/samba/private/smbpasswd.

And nothing about the access denied shows up in any log files: samba
log files  or /var/log/messages.  Completely quite.  Chatty about everything
else.  And testparm is perfect.

Anyone have any ideas what is going on?

Many thanks,
-T
[editorial comment] AAAAAAHHHHHHHHHHHHHHH!!!![/editorial comment]

~~~~~~~XP~~~~~~~~~~~~~
XP-Pro: \\Server\CDs is not accessible. you might not have permission to use
this network resource.  Access is denied


~~~~~~~Linux~~~~~~~~~~~
note that it accepts my password!

$ smbclient \\\\127.0.0.1\\OurStuff
Enter todd's password:
Domain=[FOO] OS=[Unix] Server=[Samba 3.5.6-86.el6_1.4]
smb: \>  ls
NT_STATUS_ACCESS_DENIED listing \*

                  57770 blocks of size 16777216. 34106 blocks available
smb: \>


$ smbclient -L \\\\server
Enter todd's password:
Domain=[FOO] OS=[Unix] Server=[Samba 3.5.6-86.el6_1.4]

          Sharename       Type      Comment
          ---------       ----      -------
          OurStuff        Disk      OurStuff on rn1 -- Mount as J:
          CDs               Disk      CDs on rn1 -- Mount as K:
          mnt               Disk      mnt on rn1 -- Mount as L:
          netlogon       Disk      Network Logon Service (X:)
          IPC$              IPC       IPC Service (Samba Server)
          Domain=[FOO] OS=[Unix] Server=[Samba 3.5.6-86.el6_1.4]

          Server               Comment
          ---------            -------
          KVM-WINXP
          SERVER               Samba Server

          Workgroup            Master
          ---------            -------
          FOO                  SERVER

On 10/17/2011 02:30 AM, jonathan wrote:
Hi have you changed the selinux setting to samba_share_, assuming you
are using selinux. see the TUV documentation.

set selinux using the following comands, in my example my folder
is /home/jon/samba_share.

//set the selinux linux property

/usr/sbin/semanage fcontext -a -t samba_share_t
"/home/jon/samba_share(/.*)?"


//update files in folder

/sbin/restorecon -R -v /home/jon/samba_share


//think next lines about checking it has been changed

ls -dZ /home/jon/samba_share
ls -Z /home/jon/samba_share


jon

I do not believe I have selinux activated.  Too much of a pain in
the neck.  I will check anyway.  Thank you for the help!
-T

Reply via email to