fixed URL for becoming an unprivileged user doc (#74448)

pull/74485/head
antonc42 4 years ago committed by GitHub
parent 3cff54d69b
commit c63b867836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -278,7 +278,7 @@
# choice but to create world readable temporary files to execute a module on # choice but to create world readable temporary files to execute a module on
# the remote machine. This option is False by default for security. Users may # the remote machine. This option is False by default for security. Users may
# turn this on to have behaviour more like Ansible prior to 2.1.x. See # turn this on to have behaviour more like Ansible prior to 2.1.x. See
# https://docs.ansible.com/ansible/latest/user_guide/become.html#becoming-an-unprivileged-user # https://docs.ansible.com/ansible/latest/user_guide/become.html#risks-of-becoming-an-unprivileged-user
# for more secure ways to fix this than enabling this option. # for more secure ways to fix this than enabling this option.
# #
#allow_world_readable_tmpfiles = False #allow_world_readable_tmpfiles = False

@ -687,7 +687,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
'member. In this situation, ' 'member. In this situation, '
'allow_world_readable_tmpfiles is a no-op. See this ' 'allow_world_readable_tmpfiles is a no-op. See this '
'URL for more details: %s' 'URL for more details: %s'
'#becoming-an-unprivileged-user' % become_link) '#risks-of-becoming-an-unprivileged-user' % become_link)
if execute: if execute:
group_mode = 'g+rwx' group_mode = 'g+rwx'
else: else:
@ -718,7 +718,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
'Failed to set permissions on the temporary files Ansible needs ' 'Failed to set permissions on the temporary files Ansible needs '
'to create when becoming an unprivileged user ' 'to create when becoming an unprivileged user '
'(rc: %s, err: %s}). For information on working around this, see %s' '(rc: %s, err: %s}). For information on working around this, see %s'
'#becoming-an-unprivileged-user' % ( '#risks-of-becoming-an-unprivileged-user' % (
res['rc'], res['rc'],
to_native(res['stderr']), become_link)) to_native(res['stderr']), become_link))

Loading…
Cancel
Save