LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-31-2014, 04:18 AM   #1
Heiki
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Rep: Reputation: Disabled
Unhappy Adding new share to Samba LDAP but can't access


Hello!

Client wants to add new share "2015" for next year. The guy that usually does that is on vacation and there is no documentation left behind.
I've googled around yesterday with now luck.

Server runs on Fedora and has Samba with OpenLDAP authentication.

What I have done so far:
  1. Made directory
  2. Gave FS permissions to directory with chown and chmod
  3. edited the /etc/samba/smb.conf and added new share details. I took existing share info and modified name,path and comment to fit new share.
  4. Restarted samba service

The result is that I can see the share on server. When I try to access from workstation I get "Network Error" which says I have no permissions however I can access all the existing shares fine. When I log into server as regular user I can browse the new directory with no problems.

It seems to me that authentication doesn't work? I don't know.
If anyone could help me I would be very grateful!
 
Old 12-31-2014, 08:01 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,344

Rep: Reputation: Disabled
Check the ACL on the directory with getfacl, and compare both these settings and the access settings for the share (in smb.conf) to those of other, working shares.
 
Old 12-31-2014, 08:50 AM   #3
Heiki
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Check the ACL on the directory with getfacl, and compare both these settings and the access settings for the share (in smb.conf) to those of other, working shares.
@Ser Olmy: Thanks for the reply!

I ran getfacl /export/2015 on the directory and it returned
# file: export/2015
# owner: root
# group: Users
user::rwx
group::rwx
other::---

My smb.conf is same as other shares. I used vim copy-paste to make new share so there can't be typos there.
Here's my conf:

[2015]
comment = 2015
path = /export/2015
read only = no
create mask = 0770
force create mode = 0770
security mask = 000
force security mode = 0770
directory mask = 0770
force directory mode = 0770
directory security mask = 000
force directory security mode = 0770
valid users = @Users

Seems good to me... I read that Samba should take care of LDAP authentication for me. But it seems like I am supposed to do something more. The problem still there.
I have little experience in Linux. When adding new share to Samba LDAP is it enough to edit smb.conf and restart service? Isn't there a need to let LDAP know about new share and it's OK to have users access it?
 
Old 12-31-2014, 10:43 AM   #4
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
Meybe selinux issue.
Do this by root
chcon -t samba_share_t /exports/2015
Restart samba

Last edited by zafar_dandoti; 12-31-2014 at 10:45 AM.
 
Old 12-31-2014, 04:42 PM   #5
Heiki
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zafar_dandoti View Post
Meybe selinux issue.
Do this by root
chcon -t samba_share_t /exports/2015
Restart samba
@zafar_dandoti: This solved my problem. Thank you very much!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Samba share access from XP works - Win 7 share access disappear after about 3 minutes rylan76 Linux - Networking 1 11-03-2012 06:00 AM
Adding computer to SAMBA with LDAP authentication designator Linux - Server 4 06-01-2012 03:42 PM
Authenticate samba share against LDAP (eDirectory) mark.johnson Linux - Server 2 05-07-2010 09:58 AM
Adding a disk quota to all samba users on LDAP jax8 Linux - Server 6 12-29-2009 03:33 AM
Samba share auth w/LDAP? cwhitmore SUSE / openSUSE 6 10-04-2006 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:05 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