Gah - people really need to grasp the concept of permissions. You should not be doing chmod -R 777. A much better idea is to do a chown -R user:users on it. That way you simply change ownership of the file to the standard N900 user rather than opening up access to everything. Yes I know its a personal phone not a server - but right is right.