Re: sharing one r/w unix filesystem between different machines and users
- From: "Robert Blair Mason Jr." <rbmj@xxxxxxxxxxx>
- Date: Sun, 28 Aug 2011 10:01:05 -0400
On Fri, 26 Aug 2011 08:41:35 +0200
Christoph Groth <cwg@xxxxxxxx> wrote:
"Robert Blair Mason Jr." <rbmj@xxxxxxxxxxx> writes:
Christoph Groth <cwg@xxxxxxxx> wrote:
Will something like the following work? This works on any filesystem
using standard unix permissions (such as ext*, ufs, reiserfs*,
btrfs, etc.)
Suppose your filesystem is mounted on /media/usb0.
# chmod -R a+rwx /media/usb0
This does, however, seem the Wrong Way To Do It, as it will not work
for files created after issuing the command.
That's the point. If user A creates some directory, and user B (who
has a different uid on his machine) wants to delete a file in this
directory, user B will have first to become root and override the
permissions. This is an unnecessary hassle and requires the user in
question to be fairly technical. And it won't work if the user is
unable to become root.
Unfortunately, there isn't an elegant way to do this. It seems like
it should be an option to mount (something like ignoreperms).
Looking at the internet, it appears that OSX has a mount option to
do this:
http://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/mount.8.html
(search for 'noowners')
This option does not appear to exist on Linux or BSD, however.
Thanks, I've been looking for something like this (though an OSX
solution doesn't help me). I really wonder why no one has ever fixed
this issue for Linux -- probably everybody is happy simply using FAT
and NTFS on shared removable media. And their importance is fading
anyway.
I understand OSX doesn't help anyone here... perhaps someone could
request an implementation of this command in the mount source code?
It seems simple - just check if the filesystem has noowners set and if
so, instead of fetching permissions from disk, return -rwxrwxrwx. But
these things are never as simple as they seem...
--
rbmj
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20110828100105.73c35d02@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: sharing one r/w unix filesystem between different machines and users
- From: Robert Blair Mason Jr.
- Re: sharing one r/w unix filesystem between different machines and users
- References:
- Re: sharing one r/w unix filesystem between different machines and users
- From: Blair Mason
- Re: sharing one r/w unix filesystem between different machines and users
- From: Christoph Groth
- Re: sharing one r/w unix filesystem between different machines and users
- From: Robert Blair Mason Jr.
- Re: sharing one r/w unix filesystem between different machines and users
- From: Christoph Groth
- Re: sharing one r/w unix filesystem between different machines and users
- Prev by Date: Re: Error; Skreener stop installing
- Next by Date: Re: Is there a way to tell when a system was first booted?
- Previous by thread: Re: sharing one r/w unix filesystem between different machines and users
- Next by thread: Re: sharing one r/w unix filesystem between different machines and users
- Index(es):
Relevant Pages
|