On Sun, 2002-11-03 at 21:31, Neal Lippman wrote: > I am wresting with a mount question but getting nowhere. > > Suppose that I want to mount a disk partition onto a subdirectory of > /home, but want it to be available only to one particular user. Is there > any way to effect this? > > eg, I create a directory called /home/restricted, and then want to mount > a local disk partition containing an ext2fs file system: > mount /dev/hda8 /home/restricted > > When I do the mount, the ownership and permissions of /home/restricted > are now changed to root.root and rwxrwxrwx, regardless of what I have > set for the ownership / permissions of /home/restricted prior to the > mount. > > How can I make it so that the partition mounted is accessible only to a > selected user? > > Thanks. > nl >
Add the following to /etc/fstab (assuming it will always be for the same user): /dev/hda8 /home/restricted ext2 defaults,noauto,uid=xxx,gid=xxx 0 0 Tabs between sections. That is from a QUICK scan of man fstab(5) and man mount(8). Some of the options might not work with ext2 -- there might also be others you want to use (like possibly setting he initial mask to rwxr-xr-x). -- Configure your Email to send TEXT ONLY -- See the following page: http://expita.com/nomime.html gvl2 (Gerald) AirBall the Rolling Basket Case (1969 Standard Beetle) LifeSaver (1974 Bay Window Bus) http://www.phorce1.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]