LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Samba access denied error. (http://www.linuxquestions.org/questions/linux-general-1/samba-access-denied-error-4175456813/)

pinga123 04-04-2013 03:38 AM

Samba access denied error.
 
Hi I m trying to access /TESTSMB directory in my window machine.

However i m getting access denied error.

I can able to map it as network drive however when i try to access it it gives me access denied error.

Code:

$ ls -ld TESTSMB/
drwxrwxrwx 2 smbtest smbtest 4096 Apr  4 11:32 TESTSMB/


Code:

# cat /etc/samba/smb.conf
[global]

        workgroup = MYGROUP
        server string = SMBSERVER
        security = user
        passdb backend = tdbsam
        hosts allow = 10.180.10.10


#============================ Share Definitions ==============================

[homes]
        comment = Home Directories
        browseable = no
        writable = yes

[share]
path = /TESTSMB
comment = testshare
force user = smbtest
browseable = yes
writable = yes
public = yes
read only = no
valid users = smbtest
create mask = 0640
directory mask = 0750


pinga123 04-04-2013 04:00 AM

One more thing SELinux is enabled on the machine :(

eklavya 04-08-2013 02:05 PM

Quote:

Originally Posted by pinga123 (Post 4924839)
Hi I m trying to access /TESTSMB directory in my window machine.

Are you trying to say Linux machine?

First remove this line in your conf file and try
force user = smbtest

How are you trying to mount? By command line or By UI?

This is command to mount shared directory.
Code:

mount -t smbfs -o username=username //path/of/your/shared/directory /where-you-want-to-mount
If it is remote host.
Code:

mount -t smbfs -o username=username //remote-server-IP/directory-name /where-you-want-to-mount

pinga123 04-08-2013 11:55 PM

Problem got solved it was due to SElinux restrictions .


All times are GMT -5. The time now is 05:01 AM.