securing filesystem

Support for security such as Firewalls and securing linux
Post Reply
newltoso
Posts: 6
Joined: 2016/10/13 09:26:10

securing filesystem

Post by newltoso » 2016/10/13 09:30:41

Hi, i am thinking of setting up a fileserver on WIFI and want that its file system should be secure so that even if somebody takes out its hard disk and then try to mount the hard disk, he is not able to access the files on it without knowing a particular password. can anybody suggest that what i need to do for this, any hints or packages that i can study to implement this. One more thing, i also want that the rsync should work on these encrypted files as i would be running a cron that would be rsysncing the files from one hard disk to another

please help

pwd
Posts: 61
Joined: 2014/12/23 11:54:42

Re: securing filesystem

Post by pwd » 2016/10/13 11:33:18

"God, root, what is difference?"

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: securing filesystem

Post by hunter86_bg » 2016/10/16 13:43:11

Also,

if you have TPM module, you can transfer the keys to it and if nothing has been tampered - it will automatically unlock the luks partitions and boot from them.In this case you are not fully protected , as anyone with physical access could boot the server/workstation and then copy the data to a USB or over the net. But , if an attacker tries to take the HDD(s) - they will be encrypted and he/she won't be able to decrypt them.

newltoso
Posts: 6
Joined: 2016/10/13 09:26:10

Re: securing filesystem

Post by newltoso » 2016/10/16 18:12:32

Hi, thanx for reply, what I actually want is that a person without the password should not be able to access the data on the hard-disk even if he has physical access to the server, what do you recommend

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: securing filesystem

Post by TrevorH » 2016/10/16 19:15:41

Use dm-crypt or luks (cryptsetup).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: securing filesystem

Post by hunter86_bg » 2016/10/17 08:38:39

newltoso wrote:Hi, thanx for reply, what I actually want is that a person without the password should not be able to access the data on the hard-disk even if he has physical access to the server, what do you recommend
Then the option with the TPM is not useful in this case.You should create an encrypted partition

Code: Select all

man cryptsetup
then put LVM on top of it (it's more flexible). In this setup - the server won't be able to boot without someone entering the password.
Also consider session locking (4.1.3.1. Locking Virtual Consoles Using vlock).

Note: "/boot" and "/boot/efi" cannot be encrypted.

Post Reply