On Thu, 2003-12-18 at 20:01, Dane Elwell wrote:
> Nope, that's not working either. :(
> 
> xerxes root # gvim /etc/fstab
> xerxes root # umount /mnt/storage
> xerxes root # mount /mnt/storage
> xerxes root # exit
> logout
> [EMAIL PROTECTED] omicron $ mkdir /mnt/storage/test
> mkdir: cannot create directory `/mnt/storage/test': Permission denied

Quick and dirty method if you only want yourself to use the disk.  I
have a spare ext3 partition so:

garath root # grep spare /etc/fstab
/dev/hdb9               /mnt/spare      ext3            noauto                  0 0
garath root # mount /mnt/spare
garath root # ls -ld /mnt/spare
drwxr-xr-x   20 root     root         4096 Nov 21 14:56 /mnt/spare
garath root # chown pvarner:users /mnt/spare
garath root # ls -ld /mnt/spare
drwxr-xr-x   20 pvarner  users        4096 Nov 21 14:56 /mnt/spare
garath root # umount /mnt/spare
garath root # ls -ld /mnt/spare
drwxr-xr-x    2 root     root         4096 Dec 18 20:11 /mnt/spare
garath root # mount /mnt/spare
garath root # ls -ld /mnt/spare
drwxr-xr-x   20 pvarner  users        4096 Nov 21 14:56 /mnt/spare
garath root # su - pvarner
[EMAIL PROTECTED] pvarner $ cd /mnt/spare
[EMAIL PROTECTED] spare $ mkdir test_dir
[EMAIL PROTECTED] spare $ ls -ld test_dir
drwxr-xr-x    2 pvarner  users        4096 Dec 18 20:12 test_dir
[EMAIL PROTECTED] spare $ cd test_dir/
[EMAIL PROTECTED] test_dir $ touch junk
[EMAIL PROTECTED] test_dir $ echo "This is a test" >> junk
[EMAIL PROTECTED] test_dir $ cat junk
This is a test
[EMAIL PROTECTED] test_dir $ logout
garath root # umount /mnt/spare
garath root #

If you want multiple users to be able to use the disk, then instead of
chown, do a 'chgrp users /mnt/storage' and a 'chmod 2775 /mnt/storage'
This will set the sticky bit for group users and cause all files to have
a group of users.  This keeps the ownership seperate, but allows for the
reading/writing of files by different users.

Regards,
Paul
-- 
My Gentoo stuff: http://varnerfamily.org/pvarner/gentoo

--
[EMAIL PROTECTED] mailing list

Reply via email to