Olf fashioned 'anonynous' FTP 'incoming' directory

Dirk-Willem van Gulik Dirk-Willem.van.Gulik at bbc.co.uk
Thu Jan 6 10:43:10 MST 2011


On 6 Jan 2011, at 17:39, Jelmer Vernooij wrote:

> On Thu, 2011-01-06 at 17:34 +0000, Dirk-Willem van Gulik wrote:
>> On 6 Jan 2011, at 16:59, TAKAHASHI Motonobu wrote:
>> 
>>> 2011/1/7 Dirk-Willem van Gulik <Dirk-Willem.van.Gulik at bbc.co.uk>:
>>>> Was looking for FTP style incoming directory functionality in CIFS (windows or unix).
>>> 
>>> Does the settings below help you?
>>> 
>>> -----
>>> [incoming]
>>> path = /some/where/incoming
>>> writeable = yes
>>> inherit owner = yes
>>> force create mode = 444
>>> hide unwriteable files = yes
>>> -----
>>> 
>>> # chmod 1777 /some/where/incoming
>>> # chown root /some/where/incoming
>> 
>> Hmm - trying this gives me a denied on the very mount itself (due to the 1777 of the directory). And looking at the log level all:99 output - that is because /ssome/where/incoming does not allow opendir() by the default smbd daemon.

> What version of Samba are you running ? I think TAKAHASHI Motonobu's
> configuration snippet is for Samba 3.

Tested on Version 3.0.37. Error is on mount - 'incoming' shown in the share list; xs denied on mount (regardless of mounting user, just post smbd/service.c:make_connection_snum(1042)  connect to service hidden2 xxx as user yy (uid=x, gid=x) (pid x)'.

Thanks,

Dw


More information about the samba-technical mailing list