formating external USB hard drive

Mikkel L. Ellertson mikkel at infinity-ltd.com
Sat Jan 28 17:44:57 UTC 2006


François Patte wrote:
> Tim a écrit :
> 
> 
>>For filesystems with ownership systems, that you want to share files
>>with, you need to make sure you make the files suitably readable as you
>>save them.  e.g. Group readable to a group common to both PCs, or world
>>readable, if applicable.
> 
> 
> So, it is hopeless to configure udev with filesystems with ownership
> systems.
> 
> Thanks for this help.
> 
One thing you can do, after you have the drive mounted, is to change
the permissions to match that of /tmp. That way, anyone can write
to the drive, but you can only modify your own files. You could
also set the drive to world writable without the sticky bit, and
anyone could read/write/delete the files.

Try this, as root:

cd <mountpoint>
chmod --reference=/tmp .

This change follows the drive, and not the mount point. So the drive
will work the same on any system you plug it into.

Now, if you just wanted the drive accessible to the person logged
into the console, you could create a script that would be run after
the drive was mounted that would run chown on <mountpoint>/. But I
do not know how to set up HAL to launch it...

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!




More information about the fedora-list mailing list