Bug 2089437

Summary: missing umask in the /etc/profile
Product: Red Hat Enterprise Linux 9 Reporter: justsomeone <nameless0001>
Component: DocumentationAssignee: Mariya Pershina <mpershin>
Documentation sub component: default QA Contact:
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: high CC: ipedrosa, mosvald, mperetz, mpershin, rhel-docs
Version: 9.0Keywords: Documentation
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-16 12:44:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description justsomeone 2022-05-23 16:45:43 UTC
Document URL: 

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/assembly_managing-the-umask_configuring-basic-system-settings#displaying-the-default-umask_assembly_managing-the-umask


Section Number and Name: 

25.2. Displaying the default bash umask

Describe the issue: 

in the Procedure section 

To display the default bash umask for the login shell, use: 

grep umask /etc/profile

the file /etc/profile does not have any umask i tried with rhel 9 beta 5 and i asked someone who has rhel 9 release version and he confirm the file does not have umask also


Suggestions for improvement: 

i am not sure if it bug of the os or i am missing something (i am just starting to learn rhel so i could miss something)
or is there some use cases that make that file does not have the umask for some reason

if the issue with the documentations then

this section 

25.6. Changing the default umask for the login shell

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/assembly_managing-the-umask_configuring-basic-system-settings#changing-default-umask-login-shell_assembly_managing-the-umask

will need to be updated as well

and for this section

25.8. Setting default UMASK for newly created home directories

/etc/login.defs does not have this section

# The permission mask is initialized to this value. If not specified,
# the permission mask will be initialized to 022.
UMASK 077

i guess it should be

# Default initial "umask" value used by login(1) on non-PAM enabled systems.
# Default "umask" value for pam_umask(8) on PAM enabled systems.
# UMASK is also used by useradd(8) and newusers(8) to set the mode for new
# home directories if HOME_MODE is not set.
# 022 is the default value, but 027, or even 077, could be considered
# for increased privacy. There is no One True Answer here: each sysadmin
# must make up their mind.
UMASK		022

or you mean the HOME_MODE

# HOME_MODE is used by useradd(8) and newusers(8) to set the mode for new
# home directories.
# If HOME_MODE is not set, the value of UMASK is used to create the mode.
HOME_MODE	0700



thanks for your time and help and have a nice day :)

Comment 9 justsomeone 2022-06-16 13:33:56 UTC
thanks @mpershin and for the whole team