> >[.....]
> >> Instead we decided to leave all name <-> ID mapping systems unchanged and
> >> rely on a distinction between "local" filesystems whose permissions
> >> information should be used and a "foreign" filesystem mode where owner
> >> and group IDs are ignored.
> >[.....]
> >
> >I think the owner and group of the person that mounted the filesystem
> >should be assigned to all files on that filesystem in FOREIGN mode.
> >-u and -g switches should be permitted to modify these, the -u being
> >restricted to root and the -g restricted to root or one of the groups
> >to which you are a member.
> >
> >This assumes the BSD style I-must-have-permission-to-read-and-write-
> >the-raw-partitiion style filesystem mounting by users. It would have
> >horrendous implications with the linux-style fstab-says-anyone-can-
> >mount-this idea. But then, you already mention this later on :-]
> >
> >The filesystem code would also mask all suid bits and ignore all
> >char/device files on FOREIGN media (as you've already said too).
>
> What do you see as the advantage of explicitly assigning ownership to the
> mounting user/group? The effect should be the same in either case? I
> suppose it allows an intereting middle-level of access to the group in
> question?
[.....]
Well, the idea is that if I personally ``own'' the media, I'll want
to put the appropriate permissions on files (eg, my private pgp key)
and then carry it 'round in my back pocket. I want to be able to
access that 0600 file after mounting the media and I don't want
anyone else to. I think this is ability would be a big plus
In the case of root, they should be able to do all this for any user
- they can anyway by simply switching uids.
Another thing that now occurs to me is that it should probably be
possible for root to mount the disk as `user fred' but with groups
as they are on the disk (and see below) - ie, I'm moving a disk from
one system to another and those systems share the same groups, but
not the users.
> In the case of Mac OS X we've got a daemon in the system looking for new
> disks being inserted/attached and doing the mount. We still want the
> console user to have "ownership" of the filesystem in "foreign" mode.
[.....]
Ah, ok, so all files belong to that user - I didn't realise you'd
said that. This is what I'm after too, but the group side of things
should be dealt with too so that I can give others group permissions
to various bits on my disk.
Thinking about it, -g should probably allow some sort of mapping
syntax where I can say map gid x to gid y and map gid a to gid b
where I'm a member of groups y and b. By default, map no groups
(everything's owned by the magical nobody to which nobody is a
member)....
--
Brian <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
<http://www.Awfulhak.org> <[EMAIL PROTECTED]>
Don't _EVER_ lose your sense of humour ! <[EMAIL PROTECTED]>
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message