Fix doc and user create script to set homedir permissions
RHEL based distros set homedir permissions to 700,
and Ubuntu 21.04+ to 750[1], i.e missing executable
permission for group or others, this results into failures
as defined in the below bug.
Since in doc we add useradd command, it's good to
add instructions to fix the permissions there itself
instead of getting failures during installation and then
fixing it.
Also update user create script to fix permissions
by adding executable bit to DEST directory if missing.
Reviewed: https:/ /review. opendev. org/c/openstack /devstack/ +/838645 /opendev. org/openstack/ devstack/ commit/ c64ea4f213afebd 1602d05cdd4d5bc 14eaf5356b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit c64ea4f213afebd 1602d05cdd4d5bc 14eaf5356b
Author: yatinkarel <email address hidden>
Date: Wed Apr 20 12:30:09 2022 +0530
Fix doc and user create script to set homedir permissions
RHEL based distros set homedir permissions to 700,
and Ubuntu 21.04+ to 750[1], i.e missing executable
permission for group or others, this results into failures
as defined in the below bug.
Since in doc we add useradd command, it's good to
add instructions to fix the permissions there itself
instead of getting failures during installation and then
fixing it.
Also update user create script to fix permissions
by adding executable bit to DEST directory if missing.
[1] https:/ /discourse. ubuntu. com/t/private- home-directorie s-for-ubuntu- 21-04-onwards/ 19533
Closes-Bug: #1966858 238eb95ee11a75e ddeef514293
Change-Id: Id2787886433281