[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] A question on Ownership
On Sat, 13 Apr 2002 14:49:03 +0100
Ruth Gunstone <ruth [at] bolsterstone.demon.co.uk> wrote:
> A question on Ownership, Symlinks and my "Windows" drive:
>
> In my "Home" directory (/home/ruthie), I have created a symlink, called
> 'E-drive' to /mnt/win_e (which is a partition on my "Windows"
> hard-drive).
>
> The ownership of the Symlink was 'root'.
The ownership of the symlink is unimportant, the ownership of what it
points to is what affects you.
> If I telnet from my 'other' computer, I can easily connect to my home
> directory, and from there, 'cd E-drive' and view all my files. However,
> if I'm logged-in as ruthie, I can't change any of these files as they
> appear to be owned by root (I thought 'Windows' had no concept of
> ownership?!). Nor can I create any files in this folder :-(
Windows had no concept of ownership (except NTFS under NT but that isn't
supported by Linux anyway)
You need to pass options to 'mount' when the partition is mounted, this
will set the permissions of the entire drive. 'man mount' and 'man fstab'
will point you in the right direction, but in the meanwhile...
Basically the partition is mounted by 'root' as the system boots so all
the entire drive is owned by root. You need to give the uid/gid/umask
options to mount in the fstab so it is writeable by mortal users.
/dev/hdd1 /mnt/win_e vfat uid=root,gid=users,umask=0770 0 0
this (should) mount the drive owned by root but writeable by the group
'users'
/dev/hdd1 /mnt/win_e vfat umask=0777 0 0
this (should) mount the drive owned by root but
readable/writeable/executable by everybody.
I don't have an MS-DOS partition to test with so I can't be sure I haven't
made a mistake but it should be enough to point you in the right
direction.
--Andrew
--
sparc sun4c stuff : http://www.lostgeneration.freeserve.co.uk/sparc
personal email : bob at lostgeneration dot freeserve dot co dot uk
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.