→ Applies to: SynetoOS 4.x
Step 1. Connect to SynetoOS appliance via SSH as admin
ssh admin@<your_ip_address_or_hostname>
Step 2 (optional). Change into Solaris shell (in case you're directed to an unsupported shell)
un sh
Step 3. Become Super User
sudo suManage Files
Set file as immutable and persistent (replace <file_name> with the complete path)
chattr +i <file_name>EXAMPLE
chattr +i /tmp/testfile.sh
Remove file immutability (replace <file_name> with the complete path)
chattr -i <file_name>EXAMPLE
chattr -i /tmp/testfile.sh