Wednesday, April 07, 2021

Re: Samba server issue with Windows file properties

hello.

You should look the option "store dos attributes"

quote: When this parameter is set it will override the parameters map
hidden, map system, map archive and map readonly and they will behave as
if they were set to off.

this option is by default ENABLED in samba 4.9. And when it is enabled,
samba will try to store dos attributes in

extended attributes of filesystem.

OpenBSD ffs does not have support or extended attributes.

And your "map" options does not work, because "store dos attributes" is
set.

Try to add "store dos attributes = no" to share definition.

07.04.2021 11:39, jeanfrancois пишет:
> Good day,
>
>
> Sorry to bother with this issue, if someone has a few minutes to check
> for hint that'd be very helpful.
>
> Thank you.
>
>
> After trying everything I could think of, still samba doesn't seem to
> properly work with windows special properties:
>
> map archive
> map ...
>
> From windows's properties, the Unix properties don't map the archive,
> ... states, now can we change them.
>
> Changing for example a file or folder to "hidden" from windows results
> in error request not supported.
>
> Changing the Unix property in the OpenBSD file system don't result in
> showing proper states in Windows.
>
>
> Do you have hints, does enable the samba map need something else be
> setup in samba configuration or specific to OpenBSD ?
>
>
> I note the "Archive" should be on by default but don't work, I think
> the issue may not be in samba configuration.
>
>
> Here are few configuration files:
>
>
> fstab
>
>
> /dev/wd1a /home/pub/ ffs rw 1 2
>
>
> smb.conf
>
>
> [global]
>
> workgroup = WORKGROUP
> server string = %h server
>
> socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
> SO_RCVBUF=8192 SO_SNDBUF=8192
>
> log file = /var/log/samba/smbd.%m
> max log size = 1024
> syslog = 1
> log level = 3
>
> dns proxy = no
>
> domain master = yes
> netbios name = sambaserver
> local master = yes
>
> map to guest = Bad User
> invalid users = root
> unix password sync = yes
> domain logons = no
> usershare allow guests = yes
>
> #========== Share Definitions ============
>
> [localshare]
>     browseable = yes
>     path = /home/pub
>     writeable = yes
>     guest ok = yes
>     valid users = localshare
>     create mask = 0755
>     directory mask = 0755
>
>     map readonly = yes
>     map archive = yes
>     map hidden = yes
>     map system = yes
>
>
> Le 24/03/2021 à 17:00, Kenneth Gober a écrit :
>> On Mon, Mar 22, 2021 at 9:11 AM jeanfrancois <jfsimon1981@gmail.com
>> <mailto:jfsimon1981@gmail.com>> wrote:
>>
>>     It has sometimes error messages when copy which I tracked to being
>>     from
>>     Windows network to the Samba server where source files or folders's
>>     properties are not supported (like archiving option).
>>
>>     Has someone a fix for this, or can point out what I may have
>> missed ?
>>
>>
>> Consult the smb.conf man page ("man smb.conf") and read about the
>> "map readonly", "map archive", "map hidden" and "map system" options.
>> These may help you.
>>
>> -ken

No comments:

Post a Comment