# Enabling Authentication in a Docker Yugabyte container

**URL:** <https://forum.yugabyte.com/t/enabling-authentication-in-a-docker-yugabyte-container/407>\
**Category:** General\
**Created:** [June 18, 2019, 9:00pm UTC](https://forum.yugabyte.com/t/enabling-authentication-in-a-docker-yugabyte-container/407 "2019-06-18T21:00:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Z\_Ma](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/jason_z_ma/32/110_2.png) [@Jason\_Z\_Ma](https://forum.yugabyte.com/u/Jason_Z_Ma)\
**Post date:** [June 18, 2019, 9:00pm UTC](https://forum.yugabyte.com/t/enabling-authentication-in-a-docker-yugabyte-container/407/1 "2019-06-18T21:00:24Z")

</div>

I’ve been trying to enable YCQL authentication in order to create roles within a local Yugabyte cluster. I’ve entered the docker container running yugabyte by using the command “docker exec -it --privileged bash”, and then running “./bin/yb-tserver --fs\_data\_dirs “/home/yb-tserver-dir” --use\_cassandra\_authentication=true”. However, I’m getting an error saying “bash: lsof: command not found”. Is there another way that I should be enabling YCQL authentication?

Notes: I followed the steps here under the Docker tab to install Yugabyte and create the local cluster: [YugabyteDB Quick start for macOS | YugabyteDB Docs](https://docs.yugabyte.com/latest/quick-start/install/).

---

<div class="post-metadata">

**Author:** ![Jason\_Z\_Ma](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/jason_z_ma/32/110_2.png) [@Jason\_Z\_Ma](https://forum.yugabyte.com/u/Jason_Z_Ma)\
**Post date:** [June 19, 2019, 5:34pm UTC](https://forum.yugabyte.com/t/enabling-authentication-in-a-docker-yugabyte-container/407/2 "2019-06-19T17:34:15Z")

</div>

Solved: Used the command “./yb-docker-ctl create --use\_cassandra\_authentication”.

---

<div class="post-metadata">

**Author:** ![kannan](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/kannan/32/18_2.png) [@kannan](https://forum.yugabyte.com/u/kannan)\
**Post date:** [June 19, 2019, 5:42pm UTC](https://forum.yugabyte.com/t/enabling-authentication-in-a-docker-yugabyte-container/407/3 "2019-06-19T17:42:07Z")

</div>

Thx @Jason_Z_Ma for reporting and sharing the resolution of the issue!
