That seems to have worked, but it's pretty dirty considering my other drives are still 
owned by root but my normal user can write to them.

[EMAIL PROTECTED] omicron $ ll -h /mnt
total 23K
drwx------    2 root     root           72 Sep 15 01:25 cdrom
drwxr-xr-x    2 root     root           48 Jul 24 00:13 dvd
drwx------    2 root     root           72 Sep 15 01:25 floppy
drwxr-xr-x    2 root     root           48 Nov 21 10:42 iso
drwxrwxrwx    9 root     root         8.0K Jan  1  1970 media
drwxr-xr-x    3 omicron  root         4.0K Dec 19 10:48 storage
drwxr-xr-x    2 root     root           48 Oct  4 12:40 usbflash
dr-xr-xr-x    1 root     root         8.0K Dec 17 12:19 windows

And in my /etc/fstab:

# <fs>                          <mountpoint>    <type>          <opts>                 
 <dump/pass>

/dev/hda7                    /boot                ext3               noauto,noatime    
         1 2
/dev/hda8                    /                      reiserfs           noatime         
              0 1
/dev/hda6                    none                swap             sw                   
            0 0
/dev/cdroms/cdrom0      /mnt/cdrom       iso9660          noauto,ro,user              
0 0
/dev/cdroms/cdrom1      /mnt/dvd          udf                 noauto,ro,user           
   0 0
/dev/hda1                    /mnt/windows    ntfs                ro,umask=0            
      0 0
/dev/hda5                    /mnt/media       vfat                 ro,umask=0          
        0 0
/dev/hdb1                    /mnt/storage    ext3                 noatime,users        
       0 2
/dev/sda1                    /mnt/usbflash   auto                 umask=0,noauto,user  
  0 0

So why can I mount my USB key and write to that as a normal user without messing with 
permissions, but I can write to a hard drive without fiddling around?

Also, if I change the ownership of the /mnt/storage dir, will I still be able to share 
it over NFS?


On Thu, 18 Dec 2003 21:30:04 -0500
"N. Owen Gunden" <[EMAIL PROTECTED]> wrote:

> On Fri, Dec 19, 2003 at 02:01:31AM +0000, Dane Elwell wrote:
> > 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
> 
> This is really simple, but did you try doing:
> 
>   # chown omicron /mnt/storage
> 
> after the mount command?
> 
> Of course, you may not want it owned by omicron, so you could also make
> it group writable and make sure omicron is in the proper group, or you
> could just make it world writable.
> 
> The point is, don't forget about basic unix permissions :).
> 
>  - O
> 
> --
> [EMAIL PROTECTED] mailing list
> 
> 
> 


-- 
PGP Key: http://www.fluxtrap.net/pubkey.txt

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to