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

minimize_access broken link in /usr/bin throws error when running #173

Closed
mickaelperrin opened this issue May 21, 2018 · 1 comment
Closed

Comments

@mickaelperrin
Copy link

Hi,

When I run the role on my development platform (VM in Vmware Fusion, Ubuntu 16.04), the task minimize access fails with the following error:

 - exception: Traceback (most recent call last):
  File "/tmp/ansible_GlDk98/ansible_module_file.py", line 473, in <module>
    main()
  File "/tmp/ansible_GlDk98/ansible_module_file.py", line 350, in main
    changed |= recursive_set_attributes(module, to_bytes(file_args['path'], errors='surrogate_or_strict'), follow, file_args)
  File "/tmp/ansible_GlDk98/ansible_module_file.py", line 172, in recursive_set_attributes
    changed |= module.set_fs_attributes_if_different(tmp_file_args, changed, expand=False)
  File "/tmp/ansible_GlDk98/ansible_modlib.zip/ansible/module_utils/basic.py", line 1513, in set_fs_attributes_if_different
  File "/tmp/ansible_GlDk98/ansible_modlib.zip/ansible/module_utils/basic.py", line 1242, in set_mode_if_different
OSError: [Errno 2] No such file or directory: '/usr/bin/vmware-user-suid-wrapper'

The problem is that there is a broken symlink in /usr/bin:

vmware-user -> vmware-user-suid-wrapper

Should this role manage that kind of potential scenario ?

Thanks,

@rndmh3ro
Copy link
Member

Hi @mickaelperrin,

if there'a a broken symlink than this symlink should be fixed instead of working around it in this role.

However there's also #171, where there's a problem with symlinks and this task. Maybe in this issue there will be a solution to your issue.

rndmh3ro added a commit that referenced this issue Jul 24, 2020
divialth pushed a commit to divialth/ansible-collection-hardening that referenced this issue Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants