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 - 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 01-31-2019, 12:41 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
New Small Office Server


I am looking for tutorials and advice about using NFS and Samba in a small office server.

The server will host Ubuntu Server 16.04.

One purpose of the server will be central file storage. The office systems are a mixed operating system environment with Ubuntu MATE 16.04 and Windows 7 Pro.

Very small office. Currently five stationary workstations with some occasionally connected laptops.

The Windows 7 systems will be updated to Windows 10 later this year.

Of interest is handling UIDs, GIDs, and user account names, which are not the same on all systems. Also of interest is special access folders. For example, a folder accessible only by the business owners and not employees.

At this point I am interested in the big picture and not nitty gritty technical details. Caveats and "gotchas." I am writing a project plan and want to sketch everything on paper.

Thanks much!

Edit: Active Directory is not used in the office.

Last edited by upnort; 01-31-2019 at 01:37 PM.
 
Old 01-31-2019, 08:00 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,314
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
This looks like a good place to start: https://wiki.ubuntu.com/SmallBusinessServer It appears to have some useful links as to specific implentations.

I tried a web search for "configure linux server small business" and many of the top results were a decade old or more, but that search may also be helpful as regards general best practices and potential pitfalls. Those haven't changed, even though some of the software implementation may have.
 
Old 02-01-2019, 08:07 AM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Will the server be performing anything other than file server roles? If it will just be a file server to the mix bag of end user OSs, than just set up the NFS/SMB server shares.

Keep in mind that SMB does not use file permissions like NFS will. If the file is used by both Linux and MS Windows, than I would encourage only placing that file in a SMB mount/share.

NFS can be very tricky to get setup and running with many of the "how to" guides on the WWW being incomplete and or old. For the Linux to Linux set ups for NFS shares only, excluding the MS Windows computers from those share points, getting the uuid and guid set up correctly on the workstations as well as the servers can and will be a challenge, but once you have it up and running, auto mounting with -bg and -soft (if i remember correctly) will allows for mobile (laptop) linux systems to mount/umount the NFS shares on the fly without hanging either the server or the workstation.

I have not worked with SMB mounts in over a decade, sorry im not much help there.
 
Old 02-01-2019, 09:24 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
bunch of links, and it would seem my earlier advice of using both NFS and SMB is not the best option.

https://www.aboutdebian.com/lan.htm

http://www.linuxandubuntu.com/home/h...-linux-windows

https://www.linux.com/news/using-sam...ux-and-windows

https://websiteforstudents.com/share...ws-10-systems/

https://wiki.centos.org/Download

https://www.tecmint.com/install-samb...ng-on-windows/

https://www.howtoforge.com/samba-ser...on-on-centos-7

Note I included CentOS as well as Ubuntu server for SMB. I have not looked into SMB for Ubuntu as if they are still running SMB v2, v3, or if they have upgraded to v4 as CentOS 7 has.

Running Fedora as my workstation, I am more comfortable with CentOS as they both share a similar structure and commands.

I have used Debian in the past and played with Ubuntu. For me Ubuntu just does not play nice for me. I would personally prefer pure Debian, or the switch over the the RH world. that is just me.

Hope those links help with the small business and get you pointed in the direction you are hoping to head.
 
Old 03-23-2019, 03:26 PM   #5
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
Will the server be performing anything other than file server roles?
That will the primary role. Other anticipated roles:

* Local backups for workstations.
* Nominal office web server with a few static pages.
* Possibly some VirtualBox instances.

With the two Windows 7 Pro systems in the office, seems that Samba is a must. Yet later this year the two systems will be updated to Windows 10 Pro. My understanding is an NFS client now is available in Windows 10 Pro. If that is doable then I think going that direction simplifies things for file serving.

Quote:
bunch of links, and it would seem my earlier advice of using both NFS and SMB is not the best option.
That is my basic take after researching. Use one or the other or ensure the two file server systems can be used in a way to avoid conflicts. Yet now that Windows 10 Pro supports an NFS client, possibly that concern is moot. I haven't yet tested so I don't know what anomalies might exist with the Windows client. The Windows client might be quirky, requiring me to prefer Samba for the Windows systems.

I also have to address UID/GID conflicts. The workstations are not configured with the same UIDs/GIDS. The new server will be configured with certain user and group permissions, such as directories accessible only by the owners.
 
Old 03-23-2019, 05:35 PM   #6
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: Kubuntu, Ubuntu, Debian, Proxmox.
Posts: 553

Rep: Reputation: 115Reputation: 115
I set up Samba Active Directory last year, and before that we were using Samba as a standalone fileserver.

First up, consider installing Proxmox or another virtualisation platform on your server. It'll give you a lot more flexibility. You could have a separate container as a testing environment, or if you ever do want to do active directory it's better if the domain controller and fileserver are separate.

(Also, why not use Ubuntu 18.04?)

As a standalone server (not involved in active directory), my experience is Samba just handles things by the username. For each username that needs to access the server, make a Unix account (this may be optional), then set the samba password with smbpasswd to be the same as that used on the workstation. Once that's done, for Windows clients at least it "just works" and the user can open shares on the server without typing in their password again.

Just remember if the password is changed on the workstation, it'll need to be changed separately on the server. If the passwords on workstation and server don't match the user will be shut out (not prompted for the different password). If this will be an issue, an alternative approach is to use *different* usernames on the server than on the workstations, and people can just save their drive mappings and set Windows to remember the password.

You can handle permissions from Linux, they'll be applied just fine to the Samba clients. (And if people ever get errors trying to open files, always check the perms!) You can also use the more powerful (and more complicated) Windows ACLs if you need them. And you can use the share definition in Samba to enforce certain permissions on files created if you want.

I wouldn't bother with NFS. Setting it up is doubling your workload for no obvious benefit. Just let the Linux workstations connect to Samba shares.

Let me know in the thread if you do think you might go with Active Directory, I can tell you what I've learned about that too.
 
Old 03-23-2019, 09:43 PM   #7
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
consider installing Proxmox or another virtualisation platform on your server
We use Proxmox on our infrastructure servers. I am in the process right now of developing a KB how-to for deployment of Ubuntu Server systems within our infrastructure. The oddity is I had not considered prototyping the small office server in that environment. Would be faster than prototyping on bare metal.

The final server will be bare metal though.

Quote:
Also, why not use Ubuntu 18.04?
We are using Ubuntu MATE 16.04 on our workstations and laptops. The server won't have a GUI desktop (I likely will install some web browser front-ends for the pointy-clicky owner.) Biggest reason is I haven't had time to tinker and test 18.04. At the bottom of my to-do list right now. That said, as the server will be built new and from scratch, that might be a time to test 18.04.

Quote:
Just remember if the password is changed on the workstation, it'll need to be changed separately on the server.
We are planning a centralized authentication server. I don't know how that fits into the scheme.

Quote:
I wouldn't bother with NFS. Setting it up is doubling your workload for no obvious benefit. Just let the Linux workstations connect to Samba shares.
We are using NFS right now with our antiquated NAS. Working just fine. I see your point though. I'll have to consider the options when the owner finally springs the funds for the new server (that will replace the NAS).

Quote:
Let me know in the thread if you do think you might go with Active Directory
Not on the conversation table right now, but thanks!
 
  


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
Libre Office and Open Office both fail to open MS Office documents correctly. Observed Linux - Newbie 8 07-18-2014 10:48 AM
Server configuration for small office server, which smtp, pop imap server and backup whitelinux Linux - Server 4 04-06-2010 11:26 AM
New small office network help needed tazagul Linux - Networking 2 06-05-2005 09:35 AM

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

All times are GMT -5. The time now is 09:55 PM.

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