LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 03:38 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
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, 04:00 AM   #2
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
One more thing SELinux is enabled on the machine
 
Old 04-08-2013, 02:05 PM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
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-08-2013, 11:55 PM   #4
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Problem got solved it was due to SElinux restrictions .
 
  


Reply



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 12:52 AM
Samba share not accessible access is denied error message kaplan71 Linux - Software 3 06-25-2010 10:37 AM
Samba Error --> ERRDOS - ERRnoaccess (Access denied.) rsmccain Linux - General 1 01-12-2007 01:02 PM
Samba returns access denied error. wbinfo -t fails. aleida Linux - Networking 2 08-18-2005 09:49 AM
Samba server: access denied error vharishankar Linux - General 7 09-07-2004 12:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration