[Samba] Copy with curl ? force user ignored?
Gilles
codecomplete at free.fr
Mon Oct 21 12:59:04 UTC 2024
On 21/10/2024 14:10, Rowland Penny via samba wrote:
>> Ah, didn't think of the filesystem.
>>
>> So it's either making the SD card directly accessible on a Windows
>> host or having files saved with the right owner + rights.
>>
>>
>> Not entirely sure what you are asking here, but a host connecting to
>> share via SMB never sees the shares directory or filesystem, it just
>> sees the SMB data stream, so it doesn't care what the filesystem is.
>>
>> What does matter is that the filesystem is known to the computer it
>> resides on, Linux has some knowledge of Windows filesystems, but
>> unfortunately cannot set permissions on one. What this means is, if
>> your SD card is using a non native Linux filesystem, then 'mount' can
>> appear to mount the card as a directory, but the ownership &
>> permissions are purely made up by the mount command.
>>
>> If you require to be certain of setting the correct ownership &
>> permissions on an SD card, then it must be formatted with a Unix
>> filesystem e.g. ext4, but then it probably wouldn't be compatible with
>> Windows i.e. If you plugged into a Windows machine, it wouldn't be
>> readable by Windows.
>>
>> In my opinion, you shouldn't expect to be able transfer data on an SD
>> card or USB drive and retain ownership & file permissions.
>>
I wasn't asking a question. Just that I hadn't thought that the SD card
being Fat32 was the reason force user/group didn't work as expected.
Since I might need to insert and read that card on a Windows host, I'll
stick to Fat32 and give up file ownership.
Thank you.
More information about the samba
mailing list