Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Samba vs NFS

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
pythoncoder



Joined: Thu Jun 21, 2012 4:08 pm
Posts: 4
Location: Macclesfield UK

PostPosted: Thu Jun 21, 2012 4:29 pm    Post subject: Samba vs NFS Reply with quote

I'm puzzled that articles in Linux Format seem to concentrate on Samba rather than NFS. Reviews of NAS boxes seldom mention it as a feature and the recent one on using a Pi as a NAS box was entirely based on Samba.

Six years ago, as a Linux newbie, I bought a Qnap NAS box which supported only Samba. I experienced numerous problems relating to file ownership and permissions. Wiser heads than I pointed out the differences between the Windows and Linux permissions models and suggested replacing it with a more recent box which supported NFS. From the moment I did so the mount worked just like a local drive. Magic!

While Samba is great for connecting Windows boxes to a server it seems odd to recommend a Windows protocol to connect a Linux desktop to a Linux server. Why put up with the oddities which are particularly confusing to newbies?

Has Samba got better in the years since I used it or am I missing something?

Regards, Pete
Back to top
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3422
Location: Birmingham, UK

PostPosted: Thu Jun 21, 2012 11:14 pm    Post subject: Reply with quote

NFS is great in a static LInux only network, but it lacks flexibility, which is why Samba gets used.
_________________
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2423

PostPosted: Thu Jun 21, 2012 11:46 pm    Post subject: Reply with quote

Moreover: many environments, including but not exclusively, domestic and SOHO, are at best mixed to start with, with non-Linux OS's dominant... So you'd need Samba anyway. True, I too prefer the simplicity of NFS but as WC already mentioned, that's quite exclusively the domain of Linux/Unix/BSD...
Back to top
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3422
Location: Birmingham, UK

PostPosted: Fri Jun 22, 2012 11:19 am    Post subject: Reply with quote

Actually, Win7 has an NFS client, but setting up NFS in a mixed environment is not trivial.(nor is Samba for that matter, but there are more user friendly tools for it)

From what I remember from the last time I tried to use it, NFS seems to assume servers that are on 24/7, and things can get messy if you connect to another desktop machine, for example.

Apparently NFSv3 is easy but lacks good security, whereas NFSv4 has good security but is more complex
_________________
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8375
Location: Warrington, UK

PostPosted: Fri Jun 22, 2012 11:50 am    Post subject: Reply with quote

NFS gets pretty sulky if a server holding a mounted share goes away.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
pythoncoder



Joined: Thu Jun 21, 2012 4:08 pm
Posts: 4
Location: Macclesfield UK

PostPosted: Fri Jun 22, 2012 1:20 pm    Post subject: Reply with quote

wyliecoyoteuk wrote:
NFS is great in a static LInux only network, but it lacks flexibility, which is why Samba gets used.

When I had a Windows box it talked to the NAS box using Samba while my Linux boxes used NFS. It worked far better than using Samba throughout for the reasons I cited.

However mine is a simple home network. But I surely wasn't the only newbie to struggle with this issue and to be rescued by NFS!

Regards, Pete
Back to top
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3422
Location: Birmingham, UK

PostPosted: Fri Jun 22, 2012 4:42 pm    Post subject: Reply with quote

Oh Yes, with a static 24/7 server like a NAS, it is a nice simple solution.
Not everyone has that sort of setup however, although it is becoming more common now.
Samba gets used more because a lot of people have 2 or 3 workstations that they want to file share between without a file server, and NFS does not suit that.
_________________
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast