Date: Mon, 19 Apr 1999 00:28:10 +0100 From: Mark Ovens <marko@uk.radan.com> To: questions@freebsd.org Subject: chown/chmod doesn't work on FAT slices Message-ID: <19990419002810.D965@marder-1>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990419002810.D965>
