# Custom Privilege Escalation Method

**URL:** <https://forum.ansible.com/t/custom-privilege-escalation-method/26223>\
**Category:** Ansible Project\
**Created:** [December 7, 2017, 7:38pm UTC](https://forum.ansible.com/t/custom-privilege-escalation-method/26223 "2017-12-07T19:38:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agasthi.kothurkar](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@agasthi.kothurkar](https://forum.ansible.com/u/agasthi.kothurkar)\
**Post date:** [December 7, 2017, 7:38pm UTC](https://forum.ansible.com/t/custom-privilege-escalation-method/26223/1 "2017-12-07T19:38:33Z")

</div>

I am working on a project in a secure environment where getting sudo / su access to root is not allowed. There is a custom privilege escalation method “suexec” via BoKS (product which we use for Centralized access control) which provides a native alternative to sudo.

Is it possible to configure Ansible to use this newer method instead of //////

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [December 7, 2017, 10:03pm UTC](https://forum.ansible.com/t/custom-privilege-escalation-method/26223/2 "2017-12-07T22:03:04Z")

</div>

if it is mostly compatible with one of the existing ones i recommend  
doing somthing like setting the `su` executable to `suexec` in  
config/inventory.
