Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


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
linux/misc/preserve_group_in_folder.txt · Last modified: 2018/07/25 09:21 by tplecko