-   Linux - General (
-   -   Samba access denied error. (

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.


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


# cat /etc/samba/smb.conf

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

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

        comment = Home Directories
        browseable = no
        writable = yes

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


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.

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

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 03:55 AM.