tried chattr on a file but can't revert it's effect.
currently it looks like
lsattr /path/myfile
--------------e----- /path/myfile
ls -la /path/myfile
-rwxr-xr-x 1 root root 0 Jul 5 11:12 /pat/myfile
still
sudo echo "text" > /path/myfile
-bash: /path/myfile: Permission denied
Is there any solution so that I can write with sudo or revert the chattr settings ?