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 08-26-2016, 10:18 PM   #1
red king
LQ Newbie
 
Registered: Jul 2016
Posts: 23

Rep: Reputation: Disabled
Can I share the same dir with both NFS and Samba?


I am currently just using NFS shares, but have found the use for accessing some of my shares from windows aswell. So question is, can I share the same dir as both a NFS share and Samba share?

Also I am using shared groups between the file server and clients to control permissions for the NFS share now. How do I manage the permissions when sharing with samba? is it enough to have the same group name in AD and delegate access with that?
 
Old 08-27-2016, 05:21 AM   #2
Nicolredmay
LQ Newbie
 
Registered: Jul 2016
Location: Ahmedabad
Posts: 4

Rep: Reputation: Disabled
That is the only "safe" use case. If you are the only one that will ever use it and you won't ever access the same file from both at the same time you are fine. But then you can ask another question.. "Why bother?"
 
1 members found this post helpful.
Old 08-27-2016, 06:32 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
It is OK to share using CIFS, NFS, whatnot, simultanously. Linux does not care how many users open a file and which protocol they are using.
 
1 members found this post helpful.
Old 08-27-2016, 07:05 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The users may care if there is non-arbitrated updates from disparate systems. That's why cluster aware filesystems exist.
 
1 members found this post helpful.
Old 08-27-2016, 09:26 AM   #5
red king
LQ Newbie
 
Registered: Jul 2016
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks for the replys!

a cluster filesystem means a filesystem that can be accessed and modified at the same time at block lvl? I have just recently made the change to ZFS, not sure if that is cluster aware or not. But sharing the same path with both NFS and Samba should only be a problem if 2 or more clients are trying to modify the exact same file at the same time?

The reason I want to keep the NFS shares is becaus I feel like it is faster, is this correct?

When it comes to permissions. do I have to make samba users on the linux fileserver with the same name/groupname as the ones used to share NFS to be able to share to both? This is my first time sharing using Samba.. only used it to test out AD functionality until now
 
  


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
[SOLVED] trying to share a dir through samba but getting error while running command Nitesh.Kush Linux - Server 2 05-15-2015 01:19 PM
home dir over NFS vs SAMBA (find best performance) pix9 Linux - Server 2 03-01-2015 12:23 PM
Exporting a samba share as NFS share bluforce Linux - Server 1 08-29-2012 08:31 AM
Can't mount Samba share dir in Windows XP wycolorado Linux - Software 22 10-22-2004 06:35 AM
mounting a NFS share using samba phatboyz Linux - Software 2 03-30-2004 12:26 PM

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

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