PDA

View Full Version : Setting Hard Disk Permissions



AdmiralJonB
06-13-2004, 10:37 AM
I've just intalled Knoppix onto harddisk. I'm creating new users and wanting to set permissions to access the hard drives, and I can't find how. Please Help!

CrashedAgain
06-13-2004, 08:03 PM
edit your /etc/fstab file to mount the drives so that users can have appropriate permissions, something like this:
/dev/hda1 /mnt/hda1 vfat umask=022,iocharset=iso8859-1,codepage=850,users 0 0
/dev/hda5 /mnt/hda5 ext3 auto,exec,users 0 0
/dev/hda7 /mnt/hda7 vfat umask=000,iocharset=iso8859-1,codepage=850,users 0 0

umask=022 gives read only to eveybody
umask=000 gives read/write to everybody

see man fstab for more details.

AdmiralJonB
06-14-2004, 03:59 PM
Thanks, it's working now.