adiputra.org

Bermain dengan permission (solaris)

Step ni untuk create user dalam server… then create akaun web termasuk cara nak protect dan upload/download secara pakej (tar)…

1) Akaun Web (http://localhost/~user)

– Selepas create ‘user’…
– cd user
– mkdir public_html
– cd ..
– chmod o+x user

2) Protect folder from web (disable view)

– chmod o-r [folder] msg will be “Forbidden… You don’t have permission to access [folder] on this server”

3) Compress & Decompress files/folder

tar cvf [namafile.gz] htdocs (compress semua file/folder dari dalam folder htdocs)
tar xvf [namafile.gz] htdocs (extract semua file/folder ke dalam folder htdocs)

4) selepas berjaya ftp…
– bin (tukar ke binari)
– prompt (kalau ada banyak file transfer dia tak tanya Y/N..)
– hash (indicator proses transfer..)

Leave a Reply

Your email address will not be published. Required fields are marked *