umask value is subtracted from 666 to set default permissions for a new file and subtracted from 777 for new directory. to change the file permission we use chmod after its