[PLUG] Setting permissions for windows partition

Brian Beattie beattie at beattie-home.net
Sun Sep 8 02:16:55 UTC 2002


Well since fat filesystems (msdos and vfat) do not have a place in the
filesystem to store user name or id, you can't change it.  The is
however a mount option uid= and gid= which should do what you want.

Mount options for fat
       (Note: fat is not a separate filesystem, but a common part
       of the msdos, umsdos and vfat filesystems.)

...

       uid=value and gid=value
              Set the owner and group of all files. (Default: the
              uid and gid of the current process.)




On Sat, 2002-09-07 at 15:15, Richard Steffens wrote:
> My Debian system is set up for dual boot, so there's a Windows 98
> partition. I've included it in /etc/fstab so I can access it when
> running Linux. When logged in as a user (same name and password as for
> Win98) I find that the files are read only. When I su, the files become
> r/w. To uncomplicate things, I thought I'd change the owner from root to
> rsteff, but I find that changing the ownership of anything on the
> windows partition is not permitted. Is this normal, or did I miss
> something when I set up fstab?
> 
> Here's the pertinent line in /etc/fstab:
> 
> # <file system> <mount point>	<type>	<options>		<dump>	<pass>
> /dev/hda1	/mnt/windows	msdos	defaults		0	2
> 
> As I re-read man fstab and man mount, I don't see any specific mention
> of defaults. Do I have to specify that I want the system mounted as
> read/write? Or, do I have to specifically allow user to mount the
> system?
> 
> I can always get around the problem by working on those files as root,
> but that seems wrong.
> 
> -- 
> Regards,
> 
> Dick Steffens
> "Quando Omni Flunkus Moritati"
> http://rsteff.home.attbi.com/
> 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
-- 
Brian Beattie            | Having had the honor of being selected
beattie at beattie-home.net | for a Resource Action by my former employer,
                         | it is my pleasure to announce my immediate
www.beattie-home.net     | availability, contract or permanent.
Embedded Systems, Linux/Unix internals Software Engineer





More information about the PLUG mailing list