Samber indirect implementation can only be uploaded and cannot be deleted

Source: Internet
Author: User
The indirect implementation of Samber can only be uploaded and cannot be deleted-Linux Enterprise Application-Linux server application information. The following is a detailed description. I found a lot of articles on this proposition on the Internet, and finally referred to this knowledge point to indirectly implement this function.
The general idea is to add T-bits to the shared folder. I tried to use umask IN THE Samber configuration file to specify the T bit, but it cannot be implemented. Only RWX permissions can be specified. Later, I thought of letting the files or folders created under the shared folder inherit the permissions of folders in the group to which the shared folder belongs. However, after the client is uploaded through WINDOWS, the owner is still a common user. With W permissions, you can still delete files uploaded by yourself.
Finally, the shared folder owner group is all designated as ROOT, and another script is written as chown root folder name? R
Chmod 1700 folder name? R
Then, use crontab to set an interval, which means that normal users cannot delete the file after the upload time.
You only need to have the permissions to delete the file. Therefore, you must control the permissions.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.