ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Securing Linux File Servers

    IT Discussion
    linux linux hardening security file server
    8
    35
    4.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wirestyle22W
      wirestyle22
      last edited by scottalanmiller

      Disclaimer: There may be some stupid questions here.

      I'm going to be building a Linux file server for my company. We are currently paying around $750 per month to a company. This company basically scans our medical documentation for us and shreds the physical copies once per year. They also give us an external hard drive. This is probably the most grossly overpriced 'service' I have seen in my career so far. They list removing paper clips and staples as a service (as an example). I see no reason why I can't purchase a small server for medical records and use the backups we already create. We are only using 180 GB of space so far after 4 years. Once we get passed 200 GB the costs become even crazier.

      In my experience, Linux file servers simply perform better than windows. I also know that Linux is inherently more secure. My question is: apart from fail2ban, SELinux, updates and permissions what is best practice in terms of securing this file server on the initial installation as well as over time? I dick around with Linux but I've never put one of my servers into a real production environment.

      stacksofplatesS 1 Reply Last reply Reply Quote 2
      • stacksofplatesS
        stacksofplates @wirestyle22
        last edited by

        @wirestyle22 said in Securing Linux File Servers:

        Disclaimer: There may be some stupid questions here.

        I'm going to be building a Linux file server for my company. We are currently paying around $750 per month to a company. This company basically scans our medical documentation for us and shreds the physical copies once per year. They also give us an external hard drive. This is probably the most grossly overpriced 'service' I have seen in my career so far. They list removing paper clips and staples as a service (as an example). I see no reason why I can't purchase a small server for medical records and use the backups we already create. We are only using 180 GB of space so far after 4 years. Once we get passed 200 GB the costs become even crazier.

        In my experience, Linux file servers simply perform better than windows. I also know that Linux is inherently more secure. My question is: apart from fail2ban, SELinux, updates and permissions what is best practice in terms of securing this file server on the initial installation as well as over time? I dick around with Linux but I've never put one of my servers into a real production environment.

        You could start with SCAP. They have a good list of hardening steps.

        wirestyle22W 1 Reply Last reply Reply Quote 2
        • wirestyle22W
          wirestyle22 @stacksofplates
          last edited by

          @stacksofplates Great reference. Thanks!

          1 Reply Last reply Reply Quote 1
          • travisdh1T
            travisdh1
            last edited by

            Don't forget that you can join an AD environment with a Linux box, so user permissions remain easy to deal with. https://wiki.centos.org/TipsAndTricks/WinbindADS I think with most distributions, you can AD join them in the initial install as well.

            1 Reply Last reply Reply Quote 2
            • scottalanmillerS
              scottalanmiller
              last edited by

              For the most part, there is very little to do and in reality you can just do nothing. Fail2Ban is an excellent addition, but likely your SSH is not exposed externally anyway. We always add Fail2Ban, but a lot of places don't do that. SELinux and other basic security practices should be there for you on install, so nothing to do there. Linux, especially CentOS, has all the major security practices done for you out of the box.

              1 Reply Last reply Reply Quote 1
              • RamblingBipedR
                RamblingBiped
                last edited by RamblingBiped

                DenyHosts is an alternative to Fail2Ban in regards to supplementing best practices of a properly configured ssh server. Fail2Ban allows you to configure jails for SSH and numerous other services, whereas DenyHosts is set to work only with SSH. If you're running on a resource-light VPS or VM, DenyHosts might be less of a tax on your system than a Fail2Ban implementation.

                1 Reply Last reply Reply Quote 1
                • RamblingBipedR
                  RamblingBiped
                  last edited by RamblingBiped

                  Make sure you take into consideration any risk that the company is mitigating by providing these services. What happens if data on the file server is somehow compromised? What will be the resulting fines/fees associated with the loss? Will you have to have your server audited by an external entity regularly? Who is going to perform the audits and how much will they cost?

                  stacksofplatesS 1 Reply Last reply Reply Quote 1
                  • stacksofplatesS
                    stacksofplates @RamblingBiped
                    last edited by

                    @RamblingBiped said in Securing Linux File Servers:

                    Will you have to have your server audited by an external entity regularly?

                    This a lot. That's why I recommended SCAP. You have a set of NIST rules that you can check against.

                    1 Reply Last reply Reply Quote 1
                    • DashrenderD
                      Dashrender
                      last edited by

                      I'm a bit lost on what they do for you for $750/month.

                      They scan your charts? How many a month? They give you an external harddrive? how do you access the data before they give you the drive? what are you supposed to do with the drive?

                      Removing staples sadly is not trivial and is rather time consuming when it comes to scanning in pages. I didn't used to think so until I spent a week doing it. It can slow you down by half your scanning speed.

                      We hired two kids to sort through charts to determine what we could simply shred (patient hasn't been seen in a longer period than law requires us to keep charts). They worked around 5 hours a day each for 4 weeks, together they sent 400+ boxes of charts (anywhere from 30-60 charts) to be shred.

                      1 Reply Last reply Reply Quote 1
                      • travisdh1T
                        travisdh1
                        last edited by

                        Sounds like something a decent dedicated scanner could take care of in a few minutes.

                        wirestyle22W DashrenderD 2 Replies Last reply Reply Quote 1
                        • wirestyle22W
                          wirestyle22 @travisdh1
                          last edited by wirestyle22

                          @travisdh1 that's my point. I want to remove this cost big time. It's a complete waste. Thanks guys

                          1 Reply Last reply Reply Quote 1
                          • DashrenderD
                            Dashrender @travisdh1
                            last edited by

                            @travisdh1 said in Securing Linux File Servers:

                            Sounds like something a decent dedicated scanner could take care of in a few minutes.

                            How does a scanner take care of staples?

                            Back to the OP - you haven't told us how many charts are being scanned per month, nor how you access that data once they do scan it.

                            Considering the average person working that job is making $10/hr, after benefits/taxes, etc they cost the company $15/hr minimum, assuming that was the only cost and the company made zero money for the fact that he works, the employee is working 50 hours/month. But of course almost no company is out there making zero money.. so you have to assume that they are consuming at least 50% of the income in one way or other, so the employee is working 25 hours.

                            So the question is, can you accomplish this task in under 25 hours a month and use the other half of the funds to pay your time, the hardware, the backups, scanner, etc? Maybe you can, maybe you can't.

                            travisdh1T scottalanmillerS wirestyle22W 3 Replies Last reply Reply Quote 0
                            • travisdh1T
                              travisdh1 @Dashrender
                              last edited by

                              @Dashrender said in Securing Linux File Servers:

                              @travisdh1 said in Securing Linux File Servers:

                              Sounds like something a decent dedicated scanner could take care of in a few minutes.

                              How does a scanner take care of staples?

                              If it's me, and I get permission, removing all staplers from the office.

                              but..
                              but..
                              but..
                              that's.... m.. mm... my
                              swingline

                              Don't care.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @Dashrender
                                last edited by

                                @Dashrender said in Securing Linux File Servers:

                                Considering the average person working that job is making $10/hr, after benefits/taxes, etc they cost the company $15/hr minimum, assuming that was the only cost and the company made zero money for the fact that he works, the employee is working 50 hours/month. But of course almost no company is out there making zero money.. so you have to assume that they are consuming at least 50% of the income in one way or other, so the employee is working 25 hours.

                                You can't include the profit from his work. If there is money to be made, either he's doing it in the remaining time or someone else will pick up the slack or someone else will be hired. Counting both the cost of the employee per hour and the profit that that employee can generate is double dipping unless the employee is irreplaceable and no one else can generate that revenue, which seems unlikely for a $10/hr position.

                                It's only the $15/hr that you need to consider. Does the employee save money or waste money is all that needs to be considered. You could easily hire a stay at home mom parent to do this part time only a few hours a day while their kid is at school two or three days a week if you had any concerns about the productivity of the full time existing staff.

                                DashrenderD 1 Reply Last reply Reply Quote 0
                                • wirestyle22W
                                  wirestyle22 @Dashrender
                                  last edited by

                                  @Dashrender said in Securing Linux File Servers:

                                  @travisdh1 said in Securing Linux File Servers:

                                  Sounds like something a decent dedicated scanner could take care of in a few minutes.

                                  How does a scanner take care of staples?

                                  Back to the OP - you haven't told us how many charts are being scanned per month, nor how you access that data once they do scan it.

                                  Considering the average person working that job is making $10/hr, after benefits/taxes, etc they cost the company $15/hr minimum, assuming that was the only cost and the company made zero money for the fact that he works, the employee is working 50 hours/month. But of course almost no company is out there making zero money.. so you have to assume that they are consuming at least 50% of the income in one way or other, so the employee is working 25 hours.

                                  So the question is, can you accomplish this task in under 25 hours a month and use the other half of the funds to pay your time, the hardware, the backups, scanner, etc? Maybe you can, maybe you can't.

                                  It would amount to 5 scans a day once we scan everything we have for the current year in. We would obviously need to do that in-house, which is fine. It's one big initial project and then very easy to maintain.

                                  DashrenderD 1 Reply Last reply Reply Quote 0
                                  • DashrenderD
                                    Dashrender @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in Securing Linux File Servers:

                                    @Dashrender said in Securing Linux File Servers:

                                    Considering the average person working that job is making $10/hr, after benefits/taxes, etc they cost the company $15/hr minimum, assuming that was the only cost and the company made zero money for the fact that he works, the employee is working 50 hours/month. But of course almost no company is out there making zero money.. so you have to assume that they are consuming at least 50% of the income in one way or other, so the employee is working 25 hours.

                                    You can't include the profit from his work. If there is money to be made, either he's doing it in the remaining time or someone else will pick up the slack or someone else will be hired. Counting both the cost of the employee per hour and the profit that that employee can generate is double dipping unless the employee is irreplaceable and no one else can generate that revenue, which seems unlikely for a $10/hr position.

                                    It's only the $15/hr that you need to consider. Does the employee save money or waste money is all that needs to be considered. You could easily hire a stay at home mom parent to do this part time only a few hours a day while their kid is at school two or three days a week if you had any concerns about the productivity of the full time existing staff.

                                    Yes, the OP only needs to worry about the $15/hr part.. but the outsourced company has to consider it's profits - that's where I was going with that, I wasn't talking about the OP's company worrying about profits on an internal $15/hr employee.

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • DashrenderD
                                      Dashrender @wirestyle22
                                      last edited by

                                      @wirestyle22 said in Securing Linux File Servers:

                                      @Dashrender said in Securing Linux File Servers:

                                      @travisdh1 said in Securing Linux File Servers:

                                      Sounds like something a decent dedicated scanner could take care of in a few minutes.

                                      How does a scanner take care of staples?

                                      Back to the OP - you haven't told us how many charts are being scanned per month, nor how you access that data once they do scan it.

                                      Considering the average person working that job is making $10/hr, after benefits/taxes, etc they cost the company $15/hr minimum, assuming that was the only cost and the company made zero money for the fact that he works, the employee is working 50 hours/month. But of course almost no company is out there making zero money.. so you have to assume that they are consuming at least 50% of the income in one way or other, so the employee is working 25 hours.

                                      So the question is, can you accomplish this task in under 25 hours a month and use the other half of the funds to pay your time, the hardware, the backups, scanner, etc? Maybe you can, maybe you can't.

                                      It would amount to 5 scans a day once we scan everything we have for the current year in. We would obviously need to do that in-house, which is fine. It's one big initial project and then very easy to maintain.

                                      Sure, are you telling me that your company was planning on continuing to pay the outsource company $750/month when you are in maintenance mode?

                                      1 Reply Last reply Reply Quote 0
                                      • DashrenderD
                                        Dashrender
                                        last edited by

                                        We have an on staff employee who takes care of the new daily scans, etc. But that person isn't very efficient (they are old and not computer savvy at all). The summer hires we did this year were basically just project work. Sadly they weren't willing to put in closer to 40 hr work weeks, the project would have been completed, or at least much more so. But I guess that was less important to some.

                                        1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @Dashrender
                                          last edited by

                                          @Dashrender said in Securing Linux File Servers:

                                          @scottalanmiller said in Securing Linux File Servers:

                                          @Dashrender said in Securing Linux File Servers:

                                          Considering the average person working that job is making $10/hr, after benefits/taxes, etc they cost the company $15/hr minimum, assuming that was the only cost and the company made zero money for the fact that he works, the employee is working 50 hours/month. But of course almost no company is out there making zero money.. so you have to assume that they are consuming at least 50% of the income in one way or other, so the employee is working 25 hours.

                                          You can't include the profit from his work. If there is money to be made, either he's doing it in the remaining time or someone else will pick up the slack or someone else will be hired. Counting both the cost of the employee per hour and the profit that that employee can generate is double dipping unless the employee is irreplaceable and no one else can generate that revenue, which seems unlikely for a $10/hr position.

                                          It's only the $15/hr that you need to consider. Does the employee save money or waste money is all that needs to be considered. You could easily hire a stay at home mom parent to do this part time only a few hours a day while their kid is at school two or three days a week if you had any concerns about the productivity of the full time existing staff.

                                          Yes, the OP only needs to worry about the $15/hr part.. but the outsourced company has to consider it's profits - that's where I was going with that, I wasn't talking about the OP's company worrying about profits on an internal $15/hr employee.

                                          The profits of the outsourced company don't matter to the decision making, though.

                                          DashrenderD 1 Reply Last reply Reply Quote 0
                                          • wirestyle22W
                                            wirestyle22
                                            last edited by

                                            @Dashrender You're confusing me man. There is an employee in medical records already. Instead of the company being paid to scan the stuff, we would do the initial project and then it would be maintained over time by her. It equates to 5 scans a day. I don't understand where the complication is here?

                                            DashrenderD 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post