Re: how to audit chmod syscall system wide? a wired problem of home directory group write permission got set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux