LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux, Create Dirs=no, Create files=yes. Possible? (http://www.linuxquestions.org/questions/linux-general-1/linux-create-dirs%3Dno-create-files%3Dyes-possible-132882/)

tisource 01-08-2004 06:50 PM

Linux, Create Dirs=no, Create files=yes. Possible?
 
I have looked at a number of linux permission questions, and, although I think I have a pretty good understanding of the linux file system (ext3), I thought I'd run it past you guys & gals.....

I have this folder that is the home for the anonymous ftp user. We do have limited write access enabled (on a strict quota) for quick transfers. What I'd like to do (although I don't think linux can) is grant creation of files but not folders. My understanding of linux permissions makes me conclude that this isn't possible. But if it is, I definitely want to do so.

Am I right? Also, if I remove write rights to the folder itself, then the user won't be able to create anything, right?

Thanks.....all I need is a quick answer.

trickykid 01-08-2004 06:53 PM

Usually this all depends on the FTP server your using and most likely if you can configure it within it or not, etc. It won't be within the actual filesystem though cause yes, if you disable write access, they won't be able to create directories or files, etc.

tisource 01-09-2004 01:35 PM

Well, I'm running proftpd 1.2.9........

You know off hand if proftpd can do such a thing? I'll look.....but my track record with permission settings in proftpd.conf isn't good.

Thanks

fr0zen 01-09-2004 02:51 PM

Check out http://proftpd.linux.co.uk/localsite...ref_Limit.html

Might be what you need:

Code:

<Limit MKD XMKD>
DenyAll
</Limit>


tisource 01-12-2004 10:05 PM

I understand now.

Amazing. I have seen that limit statement before, but never really realized what it could do. I have used the directive to make some other tweaks to my setup.

I'm learning......slowly....but I'm learning.

Thanks a bunch for that tidbit of information. Very enlightening.


All times are GMT -5. The time now is 02:42 PM.