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.
- = execute (on directories permission open directory)
- = write
- = sum of 1+2, both write , execute
- = read
- = sum of 1+4, read , execute
- = sum of 2+4, read/write.
- = 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
Post a Comment