# Sensu sudoer error

**URL:** https://discourse.sensu.io/t/sensu-sudoer-error/220
**Category:** Sensu Classic (EOL)
**Created:** [July 18, 2014, 10:43pm UTC](https://discourse.sensu.io/t/sensu-sudoer-error/220 "2014-07-18T22:43:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jordan\_Lin](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@Jordan\_Lin](https://discourse.sensu.io/u/Jordan_Lin)
#### Post date: [July 18, 2014, 10:43pm UTC](https://discourse.sensu.io/t/sensu-sudoer-error/220/1 "2014-07-18T22:43:37Z")

</div>

Hey guys,

I installed the Sensu client using chef.

If I run “check-fs-writable” without sudo it will give me a “Permission denied” root access error.

But when I do use sudo it will give me a “no tty present” error.

After I modified “/etc/sudoer.d/sensu” using [https://groups.google.com/forum/#!topic/sensu-users/7NXbaoPhyxM](https://groups.google.com/forum/#!topic/sensu-users/7NXbaoPhyxM) as a guide, it will give me a “/usr/bin/ruby: env” error.

Also I’m “/etc/default/sensu” has embedded ruby set to true.

Thanks,

Jordan
