Re: [Proftpd-user] Configuring for Anonymous FTP

Dennis Putnam <[email protected]> Sat, 3 Apr 2021 11:01:55 -0400
Newsgroups gmane.network.proftpd.user
Message-ID <[email protected]>
On 4/3/2021 10:49 AM, Matus UHLAR - fantomas wrote:
> On 03.04.21 09:39, Dennis Putnam wrote:
>> I am trying to configure proftpd to allow anonymous uploads (CentOS 
>> 7). I am able to login using 'anonymous' and can see the 'pub' and 
>> 'uploads' directories. I also can 'cd' into 'uploads'. I think I have 
>> either ownership or permissions wrong on the 'uploads' directory but 
>> I cannot find any place that says what to set them to. I tried 
>> various things after initially getting the error "permission denied" 
>> from the client on 'put'. However, my current settings result in 
>> "operation not permitted" from the client. Can someone tell me what 
>> to do to correct this? TIA.
>>
>> This is my current directory settings:
>>
>> |$ ls -lR /var/ftp /var/ftp: total 8 drwxr-xr-x 2 root root 4096 Apr 
>> 1 14:37 pub drwxrwxr-x 2 ftp ftp 4096 Mar 28 15:19 uploads 
>> /var/ftp/pub: total 0 /var/ftp/uploads: total 0 |
>
> looks like your mailer is bad with line wrapping.
>
>> I am using the default proftpd.conf except I specify the anon root as 
>> /var/ftp/pub. I am not running Selinux.
>
> if you specify anon root as /var/ftp/pub, then anonymous clients can 
> NOT get
> into /var/ftp/uploads.
>
> you most specify anonymous root as /var/ftp and user/group directives 
> should
> be 'ftp' for proper permissions to use.
>
Thanks for the reply. That was exactly it. I thought putting the user 
into '/var/ftp' was bad. I was still able to see 'pub' and 'uploads' 
either way which I don't quite understand. In any case it is doing what 
I want now.

As an aside wouldn't it make more logical sense to lock the user into 
'pub' (read only) and then have 'uploads' (write only) as a sub-directory?

-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html