[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-users
Subject:    Re: [Proftpd-user] ProFTPd file permissions issue
From:       Sense Zeng <opaperjam () gmail ! com>
Date:       2012-04-09 3:18:15
Message-ID: CABW-UK4u=qmcqVROpritbvpsos2nuE0JP6qVXaHKQtbLHm0LvQ () mail ! gmail ! com
[Download RAW message or body]

Found new problem:
If I use "Limit SETSTAT", user upload file's modified time will be
change to the upload time. It's can't keep the original modified time.
Is that any way to figure out it?

2012/3/29 Ezsra McDonald <ezsra.mcdonald@gmail.com>:
> I now have:
>
> <Limit  SITE_CHMOD>
>  DenyAll
> </Limit>
>
> I Dropped:
>
> <Limit ALL FEAT>
>   AllowAll
> </Limit>
>
> Everything works as needed.
>
> Thanks TJ!
>
>
> On Tue, Mar 27, 2012 at 10:02 AM, Ezsra McDonald
> <ezsra.mcdonald@gmail.com> wrote:
>> TJ,
>>
>> I see what you are saying. I did not notice I had put the "ALL" back
>> in there. I will mess with it some more and let you know.
>>
>> --Ez
>>
>>
>> On Tue, Mar 27, 2012 at 9:50 AM, TJ Saunders <tj@castaglia.org> wrote:
>>>
>>>> I have discovered the solution. To get file permissions restricted the
>>>> way I wanted I had to make the following changes to my config file:
>>>>
>>>> Umask                 007
>>>>
>>>> User                  proftp
>>>> Group                 proftp
>>>>
>>>> CreateHome            on 770
>>>>
>>>> AllowOverwrite                yes
>>>>
>>>> <Limit ALL SITE_CHMOD>
>>>>   DenyAll
>>>> </Limit>
>>>>
>>>> <Limit ALL FEAT> # This was the trick. FEAT is blocked as part of CHMOD.
>>>>   AllowAll
>>>> </Limit>
>>>
>>> This comment about FEAT being blocked by a <Limit SITE_CHMOD> does not
>>> seem right.  The <Limit ALL> will definitely block a FEAT command, though.
>>> Given that, why are you not using just:
>>>
>>>  <Limit SITE_CHMOD>
>>>    DenyAll
>>>  </Limit>
>>>
>>> As this will be the equivalent of what you have above; all commands are
>>> allowed by default.
>>>
>>> Cheers,
>>> TJ
>>>
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>>   Had we never lov'd sae kindly,
>>>   Had we never lov'd sae blindly,
>>>   Never met - or never parted,
>>>   We had ne'er been broken-hearted.
>>>
>>>        -Robert Burns
>>>
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> ProFTPD Users List   <proftpd-users@proftpd.org>
> Unsubscribe problems?
> http://www.proftpd.org/list-unsub.html

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
ProFTPD Users List   <proftpd-users@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic