Re: chmod & chown don't work

From: Dariusz Kuliński / TaKeDa (5570bmv02_at_NOsneakemailSPAM.com)
Date: 12/30/04


Date: Wed, 29 Dec 2004 23:56:43 -0800

On Thu, 30 Dec 2004 14:39:24 +0800, Cheng Hong wrote:

> Hi all,
>
> Recently, I successfully mounted the FAT32 partition to my FreeBSD5.3 box.
> Now, the problem is that I can only work on it as root. The directory
> created cannot be changed to allow other user's access. Anyone has
> experience on this?

What do you expect? FAT32 doesn't have any security settings. So you cannot
change rights of individual files/directories. Only thing you can do is set
rights on mount time:

In man mount_msdosfs there are flags:
| -u uid Set the owner of the files in the file system to uid. The
| default owner is the owner of the directory on which the file
| system is being mounted.
|
| -g gid Set the group of the files in the file system to gid. The
| default group is the group of the directory on which the file
| system is being mounted.
|
| -m mask
| Specify the maximum file permissions for files in the file sys-
| tem. (For example, a mask of 755 specifies that, by default, the
| owner should have read, write, and execute permissions for files,
| but others should only have read and execute permissions. See
| chmod(1) for more information about octal file modes. Only the
| nine low-order bits of mask are used. The value of -M is used if
| it is supplied and -m is omitted. The default mask is taken from
| the directory on which the file system is being mounted.

For more info read man mount_msdosfs

-- 
takeda@IRCnet.EFnet, ICQ# 15827691, TLEN: taked4
*http://eggdrop.takeda.tk - forum dot. botów na bazie eggdropa*
*http://eggwiki.takeda.tk - pomoc w używaniu botów po polsku*