[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

partitioning new disk, users rigths?



Hi, I've just moved my system from a 40G disk to 80G, and need some help
to set the correct user rights.

I'm not sure about what the right "debian way" is so here is what I did.
The new disk is hdd

Then with fdisk I created 1 extended disk, then two logical partition on
about the same size, then mkfs.ext3 /dev/hddX on both.

Now part info from fdisk give me this:
Disk /dev/hdd: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1               1       77545    39082648+   5  Extended
/dev/hdd5               1       35000    17639937   83  Linux
/dev/hdd6           35001       77545    21442648+  83  Linux

df -h gives this output:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdd5              17G   33M   16G   1% /disk2/hdd5
/dev/hdd5              17G   33M   16G   1% /disk2/hdd6

Have I done i right so far? Have never created/patitioning other then
during install of Debian.....

But....
Let's say, /dev/hdd5 is for users to play with (that's me), how do I set
the right permission there?
OR
If I created a folder on one of the partition, what is the correct rights
to set so users is able to play around? I meen full access.

I could ofcause just set chown username:groupname /dev/hddx or /folder and
then chmod (0)777 or something, but is that the right way of doing it?

Can I create a group and add members there?

Well....I postponed this mail and did some further googleling and test
before I sent it, and this is definitively not the way it should be
done:( .If I create a folder on hdd5, it also appear on hdd6, same if I
delete...

 Can someone please help me?

/ernst-magne




Reply to: