[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] It's that ownership thing again..



On Fri, 2003-04-18 at 21:22, Ruth Gunstone wrote:
> I've managed to set-up a shared folder on my laptop (rasillon), which I can
> connect to from my workstation (gallifrey). No problem there. On rasillon,
> the shared folder is on a FAT32 parttion, which has a mount point in my
> 'home' folder (/home/ruth/Data). BUT when I try to save or copy something
> into it from gallifrey, I get "access denied" :-(
> 
> All the files and folders in /home/ruth/Data have permissions set to
> rwxrwxrwx , but I notice that owner is declared as root. When I change to su
> and do 'chown ruth -R', I get a succession of 'operation not permitted'
> lines.
> 
> What have I done wrong?

A sample from /etc/fstab
/dev/hda7               /mnt/f                  vfat    uid=936         0 0

First column: the partition on the drive
Second column; the mount point
Third; the type
Fourth; options

The options need to change, if it is currently default then replace it
with uid=XXX. If there are options already there (like
owner,kudzu,noauto...), then a comma at the end of the existing options
followed by uid=XXX

Well, it's not quite uid=XXX, XXX is the numerical user-id, which can be
found in the third column produced by this command.
more /etc/passwd | grep username
e.g. username:x:936:936::/home/username:/bin/bash

You'll need to unmount and remount the FAT-32 partition (or at the risk
of getting jumped on from a great height, reboot).


It's all hidden in `man mount`, which may be useful if you want to play
with the group as well.

-- 
Regards,
Adam Allen.

adam@dynamicinteraction.co.uk
pgp http://search.keyserver.net:11371/pks/lookup?op=vindex&search=adam%40dynamicinteraction.co.uk

Attachment: signature.asc
Description: This is a digitally signed message part