accessing new hard drive

Greg Rundlett greg at freephile.com
Thu Sep 30 20:25:01 EDT 2004


Why is it that I can write to my new hard drive if I'm root, but not if 
I'm logged in as a normal user?  I would like the normal user to have 
access to all my devices, including the cd-r, the dvd-r, scanner (usb) 
and most importantly the new (secondary) hard drive since I'm out of 
space on the primary hard drive.

This is my /etc/fstab file (the new drive is mounted on /mnt/drive2) and 
I'm running Debian.

# /etc/fstab: static file system information.
#
# <options> defaults =  rw, suid, dev, exec, auto, nouser, and async
# <file system> <mount point>   <type>  <options>                  
<dump>  <pass>
proc            /proc           proc    defaults                   0       0
/dev/hda1       /c              ntfs    ro,suid,user,auto,exec          
0       0
/dev/hda3       /boot           ext3    defaults                   0       2
/dev/hda5       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda6       none            swap    sw                         0       0
/dev/hdb1       /mnt/drive2     ext2    rw,user,auto,exec          1       3
/dev/hdc        /media/cdrom0   auto    rw,user,noauto,exec,sync     
0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,sync     
0       0
/dev/scd0       /mnt/dvdram     auto    
rw,user,noauto,exec,sync          0       0

I thought that 'user' in the options string would let me in. 

I checked the ownership of the mount point, and it was owned by root, so 
I changed the ownership of that.  Now tests allow me to create 
directories and files, but I'm afraid that this could fail/revert on 
reboot.  Does my simple fix work?



More information about the gnhlug-discuss mailing list