linux:misc:preserve_group_in_folder

Preserve linux group on directory

$ chgrp Groupname DirectoryName      # Change group of folder
$ chmod g+s DirectoryName            # Set group id of folder - this will preserve group of created files
$ echo umask 0002 >> ~/.bashrc       # Set default mask of created files (every user needs to do this one)
 
# After next login, check umask
$ umask                              # Display umask
0002
$ umask -S                           # display current value symbolically
u=rwx,g=rwx,o=rx
Enter your comment:
42 +13 =
 
  • linux/misc/preserve_group_in_folder.txt
  • Last modified: 2019/10/31 09:05
  • by 127.0.0.1