LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   deny access to certian file type (https://www.linuxquestions.org/questions/linux-newbie-8/deny-access-to-certian-file-type-479588/)

redhatattack 09-01-2006 07:46 PM

deny access to certian file type
 
Hello,

When I login to vsftpd it chroots to my home directory which has .bashrc,.bash,.kde, etc etc etc ...

Is there anyway to not allow ftp and web access to any file with the .<filename> extension easily?

I've tried ...

<Files ~ "\.*">
Order allow,deny
Deny from all
</Files>

But even if I could get that to work I would still see it in ftp?

Any suggestions would be greatly appreciated
*the newb

redhatattack 09-02-2006 06:14 PM

anyone????

cs-cam 09-02-2006 09:06 PM

Did you even search for this? I typed 'vsftpd hide files' into Google and got a result from the FreeBSD mailing list that gave me part of the vsftpd.conf file to do this and I double checked it against the vsftpd.conf man page and it's correct. You're gonna call me a nasty name but I'm not scared, the answer is super easy to find yourself and you'll learn more that way.

Off you trot.

redhatattack 09-03-2006 12:57 AM

Nasty Name?
 
Quote:

Originally Posted by cs-cam
Did you even search for this? I typed 'vsftpd hide files' into Google and got a result from the FreeBSD mailing list that gave me part of the vsftpd.conf file to do this and I double checked it against the vsftpd.conf man page and it's correct. You're gonna call me a nasty name but I'm not scared, the answer is super easy to find yourself and you'll learn more that way.

Off you trot.

Yeah, I searched for everything but "vsftpd hide files" . I never make anything real easy on myself. When I do find the solution I'll post it here for anyone else needing a "trot". Thanks for the clue ! See ya soon ! Knowing what question to ask or what to search for always helps :) me anyway. I was asking the wrong questions to google...

cs-cam 09-03-2006 09:02 PM

http://www.die.net/doc/linux/man/man...pd.conf.5.html

See the very self-explainatory hide_file and deny_file options. I gave up on waiting to see you post back.


All times are GMT -5. The time now is 02:23 AM.