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

Re: How to mount ext3 so the files belong to a specific user?



Kent West:
> Jochen Schulz wrote:
>>   
>> Are you aware that you only need to tweak the permissions to your liking
>> once? Just create an ext2/3 filesystem, mount it as root and then change
>> the permissions of the mount point. This will affect the root directory
>> of your new file system and doesn't affect the mount point's
>> permissions. (Sounds weird, but if you think about it, it's the best
>> thing to do.)
> 
> That's nuts!

It isn't. I told you to think about it. :)

To elaborate a bit more: remember that your mount point is actually
represented by two different directories. The first one lives on the
filesystem where you executed mkdir. You only see it as long as you
haven't mounted any other filesystem "on top of it".

The second one is the root directory of the filesystem you mount on that
directory. It (obviously) lives on that other filesystem and what I have
told you is how to manipulate the permissions of that directory.  This
is actually a very clean and consistent application of the whole
filesystem concept on unix systems. :)

The only thing to remember is that a user needs to have at least (IIRC
+rx rights on the mount point. And, of course, she needs permissions
from fstab (or some automounter running as root).

J.
-- 
I wish I looked more like a successful person even though I'm a loser.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: