I can't change the file and folder permissions on my rooted android 4.4.2 device. I tried doing this from Root Explorer, Total Commander and also from terminal emulator and it didn't worked. Any idea why?
I guess the file system you are working on is mounted as readonly mode. /system is readonly by default. You need to run the following command to re-mount it as read-write
su mount -o rw,remount,rw /system
Another guess is that the file has immutable attribute. Try run this command as root to remove immutable attribute from the file.
chattr -i YOUR_FILE
The problem was caused by the fat32 file system of the sdcard.