RE: Quota for root ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sion Khalaf wrote:

> There is no possibility to do the first solution.
> The second, regarding drive  mounting, is it ram drive?

No, loopback filesystem.

> If so, How to mount it ?

	mount -o loop <filename> <mount point>

To create the file, first create a suitably-sized file with e.g.:

	dd if=/dev/zero out=loopfile.dat bs=1m count=100	#100Mb

then create a filesystem on it with:

	mke2fs -F loopfile.dat

> Anyway, I am looking for a way to make my file system read only.
> That will surely, be the best solution.
> 
> My application is writing into certain folder, not on the physically /
> File system,
> So I can make the / FS read only, Do you have an idea how can I do that
> ?

Normally, directories which need to be writable, e.g. /var and /tmp,
would use separate partitions. Those partitions would be writable (but
probably using the noexec and nodev options), but the root filesystem
would be read-only.

The most common issue with making the root filesystem read-only is
that "mount" tries to write to /etc/mtab, which will fail. Either use
the -n option to mount or recompile mount to use e.g. /var/run/mtab
instead.

-- 
Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx>
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux