Unable to change ownership on USB device
freebsd-questions-local at be-well.ilk.org
Fri Jan 20 00:18:37 UTC 2017
Gerard Seibert <carmel_ny at outlook.com> writes:
> On Thu, 19 Jan 2017 16:42:26 -0500, Lowell Gilbert stated:
>> carmel_ny writes:
>> > I have several USB devices, all formatted with FAT32 or exFat. I can
>> > mount them on my FreeBSD 11 machine; however, I cannot change the
>> > file ownership on the device. I have a rsync script for backing up
>> > the "/var/mail/vmail" and it subdirectories that are created by
>> > dovecot. I cannot use the script to back up to the USB drive since
>> > it cannot change the file ownership.
>> > I hope I am explaining this correctly. My question is how do I
>> > change the ownership of a mounted USB drive formated with FAT32 or
>> > exFat?
>> It's an option to the mount command.
>> If you're using the one from the base system, see "man mount_msdosfs".
> I configured the system to automount the drive. I suppose I could
> just unmount it with "automount -fu" and them remount it via
> mount_msdosfs. I will give it a try.
automount(8) uses mount(8), and can pass parameters to it. Do it by hand
first, sure, to get the parameters correct, but automount can do this
(via mount) if the user or group you need to set is always the same.
More information about the freebsd-questions