Linux folders can be written and cannot be deleted-Linux Enterprise applications-Linux server application information. For more information, see. After configuring ftp for Hongkong, I suddenly thought that users should be able to upload files, but files cannot be deleted. It is easy to implement in windows. What should I do in Linux?
Samba can be used for control, but it is difficult for me to configure a samba
No. You have to find another solution.
One thing that happened last year was that a directory could not be deleted, and then chattr was used.
Can chattr be used to achieve the goal?
Man ran the chattr command and found:
A file with the 'A' attribute set can only be open in append mode
Writing. Only the superuser or a process pessessing
CAP_LINUX_IMMUTABLE capability can set or clear this attribute.
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