LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-01-2005, 12:25 PM   #1
Pico_01
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Rep: Reputation: 15
Linux Filesystem access restriction


Hi,

I want to setup one of my local partitions such that it has access to users as well as root processes. I want to limit access to that filesystem such that if the filesystem is 80% full, then no user process can write to that file system, only root process can write to that file system. Is there any way to setup that? Any help is appreciated.

Thanks.
 
Old 07-01-2005, 03:26 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
Quotas?

What is the underlying problem that is giving rise to this request?
 
Old 07-01-2005, 05:18 PM   #3
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
You can setup a percentage of disk space to be reserved for root-only, but only at mkfs time.

Code:
-m reserved-blocks-percentage
              Specify  the  percentage of the filesystem blocks reserved for the super-user.  This avoids fragmentation, and allows root-owned daemons, such as syslogd(8), to continue to function correctly after non-priviā€
              leged processes are prevented from writing to the filesystem.  The default percentage is 5%.
 
Old 07-03-2005, 08:06 AM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
You can setup a percentage of disk space to be reserved for root-only, but only at mkfs time.
Use tune2fs to change the value set at mkfs time.
 
Old 07-03-2005, 02:25 PM   #5
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Quote:
Use tune2fs to change the value set at mkfs time.
Duh, can't believe I forgot about that.
 
Old 07-07-2005, 11:34 AM   #6
Pico_01
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks a lot for your help.

We have an environment in which root daemons write into tmp area and we continuously run into problems due to tmp full.
That's the reason to look into this option.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Access Timing Restriction problem gurusmaran Linux - Security 1 10-19-2005 01:03 AM
Cant access linux filesystem ext3 after upgrading from mdk 9.1 to mdk 10 drewineal Linux - Newbie 1 02-27-2005 03:45 PM
Router - Access Restriction ciop Linux - Security 4 11-01-2004 09:27 PM
CVS access restriction pedrosan Linux - Software 0 05-21-2004 02:33 AM
Telnet Access Restriction mocha Linux - Networking 1 09-16-2001 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:00 AM.

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