[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Samba writes wrong file permissions



On Wed June 4 2008 18:35:34 Robert S wrote:
> I have the following in my smb.conf:
>
> [public]
>         path = /home/apache/files
>         force user = www-data
>         force group = www-data
>         read only = No
>         create mask = 0640
>         force directory mode = 755
>         guest ok = Yes
>
> ls /home/apache/files/Dictation/XXXX/ -l
> total 736
> -rw-r----- 1 www-data www-data 318976 Jun  4 11:56 DS400039.DSS
> -rw-r----- 1 www-data www-data 427520 Jun  4 13:32 DS400040.DSS
> -rwxrwxrwx 1 www-data www-data    501 Jun  4 13:32 VoiceFolder.xml
>
> I do not want to have world-writeable files.  How do I fix this?

Take a look at "testparm -sv | grep map".

Do you have "map hidden" enabled in your smb.conf?

--Mike Bird


Reply to: