[aklug] File permissions on the mounted loop partition...?

From: Christopher Howard <choward@indicium.us>
Date: Thu Sep 09 2010 - 11:26:58 AKDT

So, I created disk85M-0000.img, then attached it to /dev/loop0, then
parititioned /dev/loop0 with fdisk, then used kpartx to get partition
one from /dev/loop0 at /dev/mapper/loop0p1, then formatted loop0p1 with
mkfs.ext3, and finally mounted /dev/mapper/loop0p1 to /vm/disk85-0000-p1.

So, I did all this as root, so /vm/disk85-0000-p1 is owned by root. But
I created special group 'vm', and I want everybody in the 'vm' group to
be able to read, write, and create files in this directory while the
partition is mount to it. Should I just chown the directory to root:vm
and set the GID bit on the directory? But if files inside the directory
are not owned by root:root, will this somehow affect the ownership of
the files after I've finished installing the components and turn this
into a live system...?

The idea here, is while installing the system components into the
mounted partition, I wanted to do the work as my regular user, instead
of root, because a lot of the files and utilities I'll be using are
stored in my regular users archives or configured for my regular user.

-- 
Christopher Howard
http://frigidcode.com
http://theologia.indicium.us
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Sep 9 11:27:09 2010

This archive was generated by hypermail 2.1.8 : Thu Sep 09 2010 - 11:27:09 AKDT