#1  
Old 20th August 2005, 02:14
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default Best practice Mount Options

My next linux build, I want to make a Linux system harder against SUID based and other exploits. I want to keep the following mount points on their own partition. I alocated 10gig to the whole installation. Based on the Fedora 3 installation avaiable on this site, what would you recommend for each partition size. Please keep in mind that I want to keep the absolute minimum so that the majority of my space is alocated to the /var partition.

Avaiable space: 10gig

/ =
/usr =
/home =
/opt =
/var =
/tmp =
/boot =

If you think I need to add aditional partitions, please state that as well.
Reply With Quote
Sponsored Links
  #2  
Old 20th August 2005, 09:41
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

I did some blind calculations and this is what I came up with. Are these sufficiant enought for a strictly webserver style installation of Fed. C4?

/ = 200MB
/usr = 2,000MB
/home = 1,000MB
/opt = 512MB
/var = 6,000MB
/tmp = 200MB
/boot = 50MB

If I can resize the other directories so that /var can be as large as possible, please let me know.

EDIT: I had to trim down on some partitions to add a 400mb swap partition.

Last edited by domino; 20th August 2005 at 11:13.
Reply With Quote
  #3  
Old 20th August 2005, 10:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,070
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

Quote:
Originally Posted by domino
I did some blind calculations and this is what I came up with. Are these sufficiant enought for a strictly webserver style installation of Fed. C4?

/ = 200MB
/usr = 2,000MB
/home = 1,000MB
/opt = 512MB
/var = 6,000MB
/tmp = 200MB
/boot = 50MB

If I can resize the other directories so that /var can be as large as possible, please let me know.
I think that looks resonable. Personally i wont choose so much different partitions, beacause sooner or later one of them will be full while other partitions where nearly empty. But for security reasons it is a good descision.

My hd layout is in most cases:

/boot
swap
/tmp
/
/var

With a big /var partition where i put the ispconfig web root.
Reply With Quote
  #4  
Old 20th August 2005, 11:10
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

Quote:
Originally Posted by till
Personally i wont choose so much different partitions, beacause sooner or later one of them will be full while other partitions where nearly empty.
That's a reasonable comment. However, I was under the impression that I can resize the partition later down the road if such case happens. I personally haven't tried it though. What's your take on that? Is it easy or hard to resize?
Reply With Quote
  #5  
Old 20th August 2005, 11:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,070
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

Quote:
Originally Posted by domino
That's a reasonable comment. However, I was under the impression that I can resize the partition later down the road if such case happens. I personally haven't tried it though. What's your take on that? Is it easy or hard to resize?
I never tried resizing a partition. The risk was too high for me and i dont want to mess up a system in production stage.
Reply With Quote
  #6  
Old 20th August 2005, 11:32
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

Quote:
Originally Posted by till
I never tried resizing a partition. The risk was too high for me and i dont want to mess up a system in production stage.
I wouldn't either. This install here is basically a trial and error thing until I know enough to upgrade the stable install. That's why I installed it on a virtual environment. It's easy enough to go back on an old snapshot. No more reinstalling and waiting for updates on the repos.

I plan to put this server, when stable enough, on production and purchase a 1 or 2mb upstream dedicated DSL connection. My friends and family can just pitch in on the bandwidth cost. Which is cetainly cheaper than if they all got there own shared hosting.

Anyway, wish me luck . heh, I'll have a server farm before you know it. Just have to upgrade to dual 64 and 4gig memory.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT +2. The time now is 00:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.