On Thu January 3 2008 16:21:14 Dave Howorth wrote:
On Thu, 2008-01-03 at 15:48 -0700, Carlos F. Lange wrote:
I partitioned a 2Gb USB stick into 500MB vfat and 1.5 GB ext2 using YaST2 partitioner. When I connect the stick, HAL mounts the vfat partition as username.user, but the ext2 partition as root.root under /media. Anyway to control how Hal mounts the ext2 partition?
The files and directories in the ext2 partition already know who they belong to - they have uids and gids.
An easy technique that will probably give you what you want is to mount the stick, then as root create a directory on it called say 'carlos-dir'. Then chown carlos carlos-dir. Now switch back to your normal carlos userid and you'll be able to do whatever you like in the carlos-dir directory.
That is what I did. But it means that if I want to create another top level directory I need to be root, which in the case of an insecure, convenient transfer media is annoying. And in case I connect it to someone else's machine, it will be mounted with however is user UID in their machine, which might not be the current user and then the permissions are not right, etc. -- Carlos FL "It is not worth an intelligent man's time to be in the majority. By definition, there are already enough people to do that." - G. H. Hardy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org