Šta je novo?

FTP CHMOD-ovanje

][V][ATRIX™

Čuven
Učlanjen(a)
05.02.2001
Poruke
2,885
Poena
679
Ne mogu da potrefim numericku vrednost za slucaj kada hocu da mi se sadrzaj odredjenog foldera ne moze ocitati jednostavnim ukucavanjem www.domen.ext/folder vec da sadrzaju moze pristupiti samo onaj ko zna i ime fajla, znaci mora da ukuca onda www.domen.ext/folder/fajl.ext
Zar to nije komanda chmod 755 i po defaultu bi trebala da bude ukljucena na svim serverima?

:(
 
mislim da je 775, tj. da ti listing direktorijuma bude citljiv, ali mi se nesto vrti po glavi da apche ima i neku internu variablu koja to disejbluje/enejbluje (znaci zavisi i od hosta)
 
Sa apachetom u njegovom config fajlu (u /etc/httpd/conf/httpd.conf) treba da imas sledeci blok:

[code:1]
#
# AccessFileName: The name of the file to look for in each directory
# for access control information.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess files from being viewed by
# Web clients. Since .htaccess files often contain authorization
# information, access is disallowed for security reasons. Comment
# these lines out if you want Web visitors to see the contents of
# .htaccess files. If you change the AccessFileName directive above,
# be sure to make the corresponding changes here.
#
# Also, folks tend to use names such as .htpasswd for password
# files, so this will protect those as well.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
[/code:1]

Ne treba da ga dodajes, nego samo da proveris da nije commented sa # ispred. Elem, onda kreiras jedan text fajlic pod nazivom ".htaccess" u tom diru koji hoces da blokiras i u njega upises samo "deny from all". Fajl bi treba da bude 644, naravno.
 
Nazad
Vrh Dno