[gentoo-user] Share hard drive for multiple users

2009-01-20 Thread Hung Dang
Hi all,
I need to mount a new hard drive formatted in ext3 to /mnt/C such that
multiple users can use it.
However, all users can only read the data from the share drive
Any suggestion?

Below is my fstab  configuration:
/dev/sda1   /mnt/C   ext3  rw,auto,noatime,defaults 0 1

Thanks
Hung



Re: [gentoo-user] Share hard drive for multiple users

2009-01-20 Thread Andrey Falko
On Tue, Jan 20, 2009 at 9:16 AM, Hung Dang hungp...@gmail.com wrote:

 Hi all,
 I need to mount a new hard drive formatted in ext3 to /mnt/C such that
 multiple users can use it.
 However, all users can only read the data from the share drive
 Any suggestion?

 Below is my fstab  configuration:
 /dev/sda1   /mnt/C   ext3  rw,auto,noatime,defaults 0 1

 Thanks
 Hung



Do you have rw permission set to the contents of the the formatted
harddrive? For example, if you want the whole thing to be rwx, do
chmod 777 /mnt/C/* -R. I personally, would do this:

find /mnt/C -type d | xargs chmod 777
find /mnt/C -type f | xargs chmod 666

This will make all directories in the drive writeable, readable and
executable (necessary for dirs) to everyone. All files will be readable and
writeable to everyone.


Re: [gentoo-user] Share hard drive for multiple users

2009-01-20 Thread Neil Bothwick
On Tue, 20 Jan 2009 10:24:10 -0800, Andrey Falko wrote:

 Do you have rw permission set to the contents of the the formatted
 harddrive? For example, if you want the whole thing to be rwx, do
 chmod 777 /mnt/C/* -R. I personally, would do this:
 
 find /mnt/C -type d | xargs chmod 777
 find /mnt/C -type f | xargs chmod 666
 
 This will make all directories in the drive writeable, readable and
 executable (necessary for dirs) to everyone. All files will be readable
 and writeable to everyone.

But new files will still be only writeable by their creator.

You should look at using ACLs for this.

-- 
Neil Bothwick

Rugged: Too heavy to lift.


signature.asc
Description: PGP signature


Re: [gentoo-user] Share hard drive for multiple users

2009-01-20 Thread Dirk Heinrichs
Am Dienstag, 20. Januar 2009 18:16:47 schrieb Hung Dang:
 Hi all,
 I need to mount a new hard drive formatted in ext3 to /mnt/C such that
 multiple users can use it.
 However, all users can only read the data from the share drive
 Any suggestion?

 Below is my fstab  configuration:
 /dev/sda1   /mnt/C   ext3  rw,auto,noatime,defaults 0 1

Put all users which should use the new drive into one group and after mounting 
it, do

chgrp thegroup /mnt/C
chmod g+ws /mnt/C

HTH...

Dirk 


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Share hard drive for multiple users - SOLVED

2009-01-20 Thread Hung Dang
Thanks all of you for quick replies.

I follow Dirk's suggestion and all users can be able to use  the share
hard drive now.

Have a good day
Hung

Dirk Heinrichs wrote:
 Am Dienstag, 20. Januar 2009 18:16:47 schrieb Hung Dang:
   
 Hi all,
 I need to mount a new hard drive formatted in ext3 to /mnt/C such that
 multiple users can use it.
 However, all users can only read the data from the share drive
 Any suggestion?

 Below is my fstab  configuration:
 /dev/sda1   /mnt/C   ext3  rw,auto,noatime,defaults 0 1
 

 Put all users which should use the new drive into one group and after 
 mounting 
 it, do

 chgrp thegroup /mnt/C
 chmod g+ws /mnt/C

 HTH...

   Dirk