Date: Sun, 18 Apr 1999 18:42:50 -0500 From: Shawn Leas <sleas@ixion.honeywell.com> To: Mark Ovens <marko@uk.radan.com> Cc: questions@FreeBSD.ORG Subject: Re: chown/chmod doesn't work on FAT slices Message-ID: <19990418184250.B5315@ixion.honeywell.com> In-Reply-To: <19990419002810.D965@marder-1>; from Mark Ovens on Mon, Apr 19, 1999 at 12:28:10AM %2B0100 References: <19990419002810.D965@marder-1>
next in thread | previous in thread | raw e-mail | index | archive | help
Of course they don't work... There is no way for them to work... However, your default umask and owner/group are taken from your mountpoint directory's permissions. So, if your mountpoints look like: drwxrwx--- 1 mork mork 16384 Dec 31 1979 /dos/c/ drwxrwx--- 1 mork mork 16384 Dec 31 1979 /dos/d/ All your files will be mode 770, and owned by mork/mork. Linux has a umask= mount option, but FreeBSD does not. You can use noexec to ensure nothing gets directly executed. On Mon, Apr 19, 1999 at 12:28:10AM +0100, Mark Ovens wrote: > chown(1) and chmod(1) don't appear to work on FAT slices. I've just > discovered that all the files (and directories) on my FAT slice > are owned by root/wheel and have 755 permissions. Trying to chown(1) > the files gives: > > marder-1# ls -l index.html > -rwxr-xr-x 1 root wheel 9204 Mar 7 10:06 index.html > marder-1# chown marko index.html > chown: index.html: Invalid argument > marder-1# !ls > -rwxr-xr-x 1 root wheel 9204 Mar 7 10:06 index.html > marder-1# > > and chmod(1) fails silently: > > marder-1# ls -l index.html > -rwxr-xr-x 1 root wheel 9204 Mar 7 10:06 index.html > marder-1# chmod 777 index.html > marder-1# !ls > ls -l index.html > -rwxr-xr-x 1 root wheel 9204 Mar 7 10:06 index.html > marder-1# > > The slice is mounted r/w and I've successfully copied files to it > (as root). > > I'm certain I didn't have this problem under 2.2.8. > > I've read the mount_msdos(8) manpage and know about the -u, -g -m > options, but it is mounted automatically at boot (the options are > ``rw'' in the /etc/fstab entry and were the same in 2.2.8). > > What's gone wrong? > > -- > FreeBSD - The Power To Serve http://www.freebsd.org > My Webpage http://www.users.globalnet.co.uk/~markov > _______________________________________________________________ > Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK > CAD/CAM solutions for Sheetmetal Working Industry > mailto:marko@uk.radan.com http://www.radan.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Shawn <=========== America Held Hostage ===========> Day 2279 for the poor and the middle class. Day 2298 for the rich and the dead. 643 days remaining in the Raw Deal. <============================================> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990418184250.B5315>