On Wed, 31 Jan 2018 20:06:38 +0000 (UTC) "mr.cheng" <crquan@xxxxxxxxx> wrote: > I checked all bash_history and system logs, didn't see any explicit > bash call of "chmod g+w ..." ; so I suspect some software is calling > by chmod syscall, What is your umask set as? That determines what permissions new files get. It is often set explicitly in ~/.bash_profile or ~/.bashrc I have a line in .bashrc of umask 0077 and my files are created as rw------ if they are non executable. umask [-p] [-S] [mode] The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that accepted by chmod(1). If mode is omitted, the current value of the mask is printed. The -S option causes the mask to be printed in symbolic form; the default output is an octal number. If the -p option is supplied, and mode is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode was successfully changed or if no mode argument was supplied, and false otherwise. _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx