LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 04-04-2013, 04:38 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 676
Blog Entries: 2

Rep: Reputation: 36
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
 
Old 04-04-2013, 05:00 AM   #2
pinga123
Member
 
Registered: Sep 2009
Posts: 676
Blog Entries: 2

Original Poster
Rep: Reputation: 36
One more thing SELinux is enabled on the machine
 
Old 04-08-2013, 03:05 PM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 590

Rep: Reputation: 131Reputation: 131
Quote:
Originally Posted by pinga123 View Post
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
 
Old 04-09-2013, 12:55 AM   #4
pinga123
Member
 
Registered: Sep 2009
Posts: 676
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Problem got solved it was due to SElinux restrictions .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
samba share access denied error PlorkZ Linux - Server 5 10-08-2012 01:52 AM
Samba share not accessible access is denied error message kaplan71 Linux - Software 3 06-25-2010 11:37 AM
Samba Error --> ERRDOS - ERRnoaccess (Access denied.) rsmccain Linux - General 1 01-12-2007 02:02 PM
Samba returns access denied error. wbinfo -t fails. aleida Linux - Networking 2 08-18-2005 10:49 AM
Samba server: access denied error vharishankar Linux - General 7 09-07-2004 01:17 AM


All times are GMT -5. The time now is 06:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration