PDA

View Full Version : new HD permission problems



Hayabusa
08-27-2004, 09:11 PM
I recently added a thrid hard drive to my system to be used as extra file storage space. it's recognized by linux as /dev/hdd and i set it up with cfdisk to make only one partition which is /dev/hdd1. I was able to format the partition for ext3, the only problem being that only root has permission to write files to that drive and to view files on that drive. seems odd to me as it appears to set up the way all my other drives are set up in terms of permission. anyway here's some pertinant info:

from /etc/fstab:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda3 / ext3 defaults,errors=remount-ro 0 1
none /sys sysfs defaults 0 0
/dev/hdc /dvd auto defaults,ro,user,noexec,noauto 0 0
/dev/scd0 /cdaudio auto defaults,ro,user,noexec,noauto 0 0
/dev/hda1 /mnt/hda1 vfat auto,users,exec,umask=000 0 0
/dev/hda4 /mnt/hda4 ext3 auto,users,exec 0 0
/dev/hdd1 /mnt/hdd1 ext3 rw,auto,users,exec 0 0
/dev/hda5 none swap defaults 0 0
/dev/hdb1 /mnt/hdb1 ntfs auto,users,rw,exec,umask=000 0 0
/dev/sda1 /mnt/fuji vfat rw,noauto,user 0 0

form /dev/ (as you can see the HDs i use are hda, hdb, and hdc, and the new one hdd)


brw-rw---- 1 root disk 3, 0 Apr 29 20:27 hda
brw-rw---- 1 root disk 3, 1 Apr 29 20:27 hda1
brw-rw---- 1 root disk 3, 3 Apr 29 20:27 hda3
brw-rw---- 1 root disk 3, 4 Apr 29 20:27 hda4
brw-rw---- 1 root disk 3, 5 Apr 29 20:27 hda5
brw-rw---- 1 root disk 3, 64 Apr 29 20:27 hdb
brw-rw---- 1 root disk 3, 65 Apr 29 20:27 hdb1
brw-rw-rw- 1 root dvd 22, 0 Apr 29 20:27 hdc
brw-rw---- 1 root disk 22, 64 Apr 29 20:27 hdd
brw-rw---- 1 root disk 22, 65 Apr 29 20:27 hdd1

(one thing I notice here is that with hdd1 instead of like every other disk after disk instead of their being a 3 there's a 22, could this have anything to do with it?)

and here's my /mnt:
drwxr-xr-x 7 root root 4096 Aug 6 00:20 .
drwxr-xr-x 26 root root 4096 Aug 15 12:23 ..
drwxr-xr-x 2 root users 4096 May 19 00:56 fuji
drwxrwxrwx 10 root root 8192 Dec 31 1969 hda1
drwxr-xr-x 33 root root 4096 Jul 29 17:32 hda4
drwxrwxrwx 1 root root 12288 Aug 2 19:00 hdb1
drwxr-xr-x 4 root users 4096 Aug 15 12:32 hdd1

you can see I tried changing the group for /mnt/hdd1 to users.


I've tried playing with permissions/groups on /dev/hdd /dev/hdd1 /mnt/hdd1 as well as trying some differnt settings in /etc/fstab. Can anyone here shed some light on this and let me know what I'm doing wrong and what i need to do to give users sufficient privledges to hdd1