Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTH-9328 (Default umask values) #60

Closed
DocEmmetBrown opened this issue Jul 29, 2015 · 3 comments
Closed

AUTH-9328 (Default umask values) #60

DocEmmetBrown opened this issue Jul 29, 2015 · 3 comments
Assignees
Labels

Comments

@DocEmmetBrown
Copy link
Contributor

Hi,

when no umask is setted in /etc/profile, the result of the test is :

[17:19:19] Result: found several umask values configured in /etc/profile
[17:19:19] Hardening: assigned 1 hardening points (max for this item: 2), current: 1, total: 2
[17:19:19] Hardening: assigned 2 hardening points (max for this item: 2), current: 3, total: 4

because the item :

FIND2=`grep "umask" /etc/profile | sed 's/^[ \t]*//' | grep -v "^#" | awk '{ print $2 }' | wc -l`

returns 0, and the following test is

if [ "${FIND2}" = "1" ]; then OK ; else "found several values"; fi

doesn't act differently if the result is 0 or a number greater than 1.

@mboelen mboelen added the bug label Aug 20, 2015
@mboelen mboelen self-assigned this Aug 20, 2015
@mboelen
Copy link
Member

mboelen commented Aug 20, 2015

Patch applied. Can you test if it properly works for your system as well?

@mboelen
Copy link
Member

mboelen commented Sep 8, 2015

@DocEmmetBrown Patch applied, does it work correctly for you?

@mboelen
Copy link
Member

mboelen commented Sep 16, 2015

Several improvements have been made to properly detect the umask values. Closing this issue, to keep the list clean. When something still needs attention, reopen the issue.

Thanks for reporting this issue!

@mboelen mboelen closed this as completed Sep 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants