chmod 777? Sry but that is just one of the worst things anyone can do to a file on a *nix computer...
chmod 640 will do for most purposes (Owner can read, write, Group readonly, others have no access). Why does a .dat file need to be executable?
For executables: 740 or maybe 750.
0 --- no permission
1 --x execute
2 -w- write
3 -wx write and execute
4 r-- read
5 r-x read and execute
6 rw- read and write
7 rwx read, write and execute
http://en.wikipedia.org/wiki/Filesys...ix_permissions
__________________