l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:01

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] chown and chgrp problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] chown and chgrp problems

  • Subject: Re: [vox-tech] chown and chgrp problems
  • From: Peter Jay Salzman <MAPSp@dirac.org>
  • Date: Wed, 21 Feb 2001 13:10:42 -0800
  • References: 3A9404B5.EBDBFC0C@afes.com

you haven't been to meetings in a very long time.   :-(

On Wed 21 Feb 01, 10:11 AM, Robert G. Scofield said: 
> I'm having problems with chown and chgrp.  I've just configured
> /etc/fstab so that the Windows partition on this dual boot machine will
> automatically mount when I start Linux.  I want to be able to
> efficiently edit documents on the Windows partition with WordPerfect 8
> for Linux.  When I try to do this I get a message that says that to edit
> my documents I have to save them under a new name because the Windows
> documents are read only.

you can't chown/chgrp these files.  presumably, you tried to do this as root
and still got the error message.

the reason for this is because vfat/msdos has no concept of ownership or
group.  the closest concept they have is "attribute" (which ext2 has also,
by the way.  see man chattr).   linux won't let you change ownership or
group because there's nowhere on the vfat filesystem that holds this

that's that.  now what can you do about?

1. looking at the man page for mount, i see that there's an option for fat
   style filesystems:

        uid=value and gid=value

   so assuming bob is uid 200, gid 200, try:

        mount -t vfat -o uid=200,gid=200 /dev/hda1 /C

replacing the right parameters for uid, gid, partition and mount point.

2. check out the attrib DOS command if the above doesn't work.


> Most of the files I'm interested in are in a Windows folder called
> "MyFiles."   I go to /mnt/vfat to change the group and ownership of
> MyFiles and the files therein.  My username and my group name is "bob."
> If I type:  "chown bob MyFiles" (without the quotation marks), I get
> this message:
> chown: MyFiles: Operation not permitted
> Note that I am logged in as su when I do this.  If I type "chgrp bob
> MyFiles" I get this message:
> chgrp: you are not a member of group `bob': Operation not permitted
> So what am I supposed to do in order to change the group and ownership
> of the files in MyFiles?
> Thank you.
> Bob

"...and here is fortress ovum being stormed by               p@dirac.org
    millions of tiny warriors..."                            www.dirac.org/p
           -- Robert "Schweitzer" Picardo

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!