the result of "setfacl --modify" will get reverted after a reboot

 The `setfacl` command is used to set file access control lists (ACLs) on a file or directory. If you're finding that the changes made with `setfacl --modify` are not persistent after a reboot, it might be due to the default ACL settings or the file system type you're using.


Here are a few considerations:


1. **File System Type**: Not all file systems support ACLs, and support for ACLs can vary between different filesystems. Ensure that you're using a filesystem that supports ACLs, like ext4 or XFS on Linux.


2. **Default ACLs**: Some filesystems, like ext4, support default ACLs. These default ACLs can be applied to newly created files and directories. If you're setting ACLs on a directory, make sure you're also setting any necessary default ACLs if you want them to be applied to new files and directories created within that directory.


3. **Boot Scripts or Configuration**: Some operating systems or distributions have scripts or configuration files that reset file permissions or ACLs during boot. You might want to check if there are any scripts or configurations that interfere with your ACL settings.


4. **Permissions and Inheritance**: Be aware of how ACLs interact with regular Unix permissions. ACLs can be more complex, and the effective permissions are often the result of both the ACLs and the standard file permissions. Make sure you're setting ACLs in a way that aligns with your desired access control.


5. **Documentation**: Check your system's documentation for ACLs and boot-time behavior specific to your distribution.


If you can provide more specific details about your setup and the issue you're facing, I can offer more targeted assistance.

Comments

Popular posts from this blog

bad character U+002D '-' in my helm template

GitLab pipeline stopped working with invalid yaml error

How do I add a printer in OpenSUSE which is being shared by a CUPS print server?