简体   繁体   中英

lock the physical location file storage for the uploaded

Need to lock the physical location file storage for the uploaded. On server, web admin have the access of the file which are stored. Need to lock the folder so none can access the folder other than the system.

I can lock the folder using privilege but it is not allowing to upload the file using servlet.

is anybody have idea about it? How can I achieve security of folder? is there any solution other than database storage?

Use the security measures of the file system to do this. Eg on Linux, create a group and only give r/w access to this group with regards to your upload folder. Run your servlet container with a user that is a member of this group.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM