hiding files under a mount point.

Mitch Wright mitch at hq.af.mil
Wed Mar 27 03:36:09 AEST 1991


/* 
 * On 21 Mar 91 17:57:48 GMT, 
 * In article <1991Mar21.175748.27202 at NCoast.ORG>,
 * jeffl at NCoast.ORG (Jeff Leyser) said:
 * 
 */ 

George> If you have some files in a directory eg /usr (on the root partition)
George> and you mount the filesystem /usr over them, they become "invisible".

Jeff> Of course, unmounting the "overlay" will allow you to manipulate the (no
Jeff> longer) hidden files in the usual manner.
Jeff> But there several better ways to do what (I think) you want.  Place the
Jeff> files in a directory owned by root, with permission of 700.  Users will
Jeff> [...]

Just write your own library routines that quickly unmount the fs, open the
file, and then remount.

	~mitch

   mitch at hq.af.mil (Mitch Wright) | The Pentagon, 1B1046 | (703) 695-0262



More information about the Comp.unix.questions mailing list