→ Applies to: SynetoOS 5.x
Step 1. Connect to SynetoOS appliance via SSH as admin
ssh admin@<your_ip_address_or_hostname>
Step 2. Get root privileges
sudo su -Manage Files
Set file as immutable and persistent (replace <file_name_path> with the complete path and file name)
chattr +i <file_name_path>EXAMPLE
chattr +i /tmp/testfile.sh
Remove file immutability and persistent (replace <file_name_path> with the complete path and file name)
chattr -i <file_name_path>EXAMPLE
chattr -i /tmp/testfile.sh