On Thu, Apr 07, 2011 at 09:34:48PM +0400, Dmitry Mordovin
wrote:> Dear All!
>
> Does anyone have troubles with setting hidden attribute?
>
> Read-only set and unset properly
> Hindden - can't set at all
You have:
"map hidden (S)
This controls whether DOS style hidden files should be mapped to
the UNIX world execute bit."
set, on a filesystem on which you have mounted "noexec".
Can you see the problem here ? :-).
You need to add "store dos attributes = yes"
to store the DOS attribute bits into extended attributes.
Jeremy.
> mount:
> /mnt/disk.img on /drv1 type ext4
> (rw,noexec,nosuid,nodev,loop=/dev/loop0,acl,user_xattr)
>
> Samba 3.5.8
>
> smb.conf
> ----------------------------
> [global]
> pid directory = /opt/samba/run
> lock directory = /opt/samba/cache
> private dir = /opt/samba/cache
> log file = /opt/samba/smbd.log
> log level = 10
> security = share
> max log size = 1024000
> bind interfaces only = true
> interfaces = eth1
> smb ports = 445
> map hidden = yes
>
> [homes]
> browseable = yes
> printable = yes
>
> [mnt2]
> path = /drv1
> read only = no
> guest ok = yes
> ----------------------------
>
> Thanks
> Dmitry
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba