Has nothing to do with gcc. Umask is set to 1's complement of the permissions desired on dir/file.. -ishwar On Fri, 13 May 2005, Venkat Narayana wrote: > Hi, > > Could anyone let me know how to use umask so that i can give a file > execution permision. > When i tried umask 000 ,it is not working with files.It is working > with directories. > How to solve it ? > > Many Thanks, > Venkat. >