[SLUG] OOps fstab

Paul Teasdale pdt at rcsuk.demon.co.uk
Sun Apr 16 20:36:33 BST 2006


On Sun, April 16, 2006 20:04, Jamie Adams wrote:
> On Sun, 2006-04-16 at 14:46 -0400, john at johnallsopp.co.uk wrote:
>
>>
>> Am I right about the fdisk bit? Can I change the owner of a partition?
>
> If you want those partitions writable by normal users, mount them in
> fstab with the 'user' variable - something like this:
>
> /dev/hda1      /mnt/xp         vfat    rw,user         0       1
>

You can also use (assuming your 1st partition on your first ide hdd,
mounted on /mnt/work, ext3 format):

/dev/hda   /mnt/work   ext3  defaults   0   0

thus giving users access to the partitions along with a few other default
options such as rw etc. The actual permissions on the device file are
usually:

brw-rw---  root  disk  hda1

but these should be correct already.

Don't worry too much about giving network users access to your hdd. To do
this you need to use some type of service such as nfs or samba both of
which you can control permissions through. Without such services I don't
know of any way of getting at a hdd on a remote pc.

Likewise local users can be controlled via local permissions however you
feel fit.

Sorry I misunderstood your earlier mail. I was still under the impression
you were still trying to rescue your unbootable pc.

Rgds,
Paul





More information about the Scarborough mailing list