Can't access my samba share: Permissions denied.
Background: This is a repost that I wrote on reddit/r/linuxquestions. Unfortunately no one was able to help me with this problem. So I thought I should try and see if any of you peple have any suggestions. I've tried almost everything that the internet and I could come up with and I'm seriously hoping that someone out there knows what might be causing this error.
I'm currently working on setting up a file server at home. The computer is running Centos 7.0.1406 (Core) with Samba package 'Samba-4.1.1-37.el7_0.x86_64'. The file servers NetBIOS/hostname is 'athenaeum'. The computer from which I intend to access this file server runs Windows 7 x64 Home Premium. Configuration info: My samba conf (/etc/samba/smb.conf) Code:
[global] Code:
[max@athenaeum ~]$ ll /mnt/ Problem: Whenever I try to access this share I am presented with two different error messages: #1: Quote:
#2: Quote:
Please note, that I have done so. I've run all kinds of variations of net use, including C:\net use /delete * And later remapped it again. No success. I've tried connecting to both hostname and directly to the IP-address. Switched of firewalld. Still didn't work. Iptables is installed by default but no daemon seems to be running. What I've tried so far: 1. A common problem that might occur is that Windows uses the wrong type of NTLM authentication than the one that Samba uses. It is possible to force windows to use NTLM v.1 through local GPO's but Home Premium does not include the local gpo editor. I've tried the regedit-hack where you change the registry-entry “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\LMCompatibilityLevel” I've tried changing it to "1" (Clients use LM and NTLM authentication, and they use NTLMv2 session security if the server supports it. Domain controllers accept LM, NTLM, and NTLMv2 authentication.) And I've tried changing it to "2" Clients use only NTLM authentication, and they use NTLMv2 session security if the server supports it. Domain controller accepts LM, NTLM, and NTLMv2 authentication. No luck. 2. I tried setting up a virtual machine in Oracle's Virtual Box, running Windows 7 x64 Professional and in this machine, through the local gpo editor, I edited the NTLM Compatibility Levels to the ones compatible with samba. STILL didn't work. By now I'm running out of ideas. 3. Also note: I've tried to connect to it by entering the following variations in the user authentication window that my windows machine throws at me: Username: 192.168.20.2\max Password: ********* Username: max@192.168.20.2 Password: ********* Username: max Password: ********* 4.And I've also tried with another user account that was setup as a samba user, yet no success. 5.Changed password of linux/samba-user 'max' with smbpasswd. (smbtool is not installed on my system appearantly, should it be?) With my newly changed sambapassword I tried to reconnect the share, this time the parameter for valid users was set as. valid users = max Nope. Still not working. I changed the map to guest = none to map to guest = bad user (allow guest logons if no credentials entered). I also commented out valid users. Did not work. All and all, no matter what I do, the log kees showin me the following: Code:
STATUS=daemon 'smbd' finished starting up and ready to serve connectionsFailed to delete pidfile /run/smbd.pid. Error was No such file or directory It'd be very nice if someone could help me? Is there something that I've missed? |
Hi
do you have disabled SElinux ? |
It totally worked, man!! :D
THANK YOU SO MUCH! I've been troubleshooting this problem for weeks! This config file for SELinux solved the problem: Code:
[root@host2a ~]# cat /etc/sysconfig/selinux |
Solved several issues
This fix solved all of my Samba problems which I have been wreslting with for days. In addition to share permission problems, it also solved problems with getting the nmb service up and running, and stay up and running.
Many many thanks for the solution. This issue should be marked SOLVED!!! |
All times are GMT -5. The time now is 06:47 AM. |