How Do You Set Write Permissions But Not Read Or Modify - cPanel? -


i building site user needs able upload files.

i want them able upload files not read them.

for example, if upload "test.zip" dont want them or user able go "www.url.com/test.zip" , down load file or read if .txt etc.

i using cpanel if helps.

i have had google appears different combinations of permissions people requesting.

to set file to allow user , group write file want give directory bothe write , execute permissions. because unix permissions adding numbers of permissions want grant add 1 (for execute) , 2 (for write ) 3.

  1. = execute (on directories permission open directory)
  2. = write
  3. = sum of 1+2, both write , execute
  4. = read
  5. = sum of 1+4, read , execute
  6. = sum of 2+4, read/write.
  7. = sum of 1+2+4, read, write , execute.

for directory function write folder want permission of 3 (remembering need of executable access folder.

now after calculating number need set 3 times. once user owning file, once group, , once others. these set putting 3 numbers in order.

so set folder allows write access user , group use 330. in chmod command used set permissions like:

chmod 330 ~/public_html/path/to/folder 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -