# sudo and telnet

**URL:** <https://forum.ansible.com/t/sudo-and-telnet/20722>\
**Category:** Ansible Project\
**Created:** [March 1, 2016, 2:56pm UTC](https://forum.ansible.com/t/sudo-and-telnet/20722 "2016-03-01T14:56:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhnworks](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@jhnworks](https://forum.ansible.com/u/jhnworks)\
**Post date:** [March 1, 2016, 2:56pm UTC](https://forum.ansible.com/t/sudo-and-telnet/20722/1 "2016-03-01T14:56:25Z")

</div>

Looking to translate this to a playbook :

1. In your SSH Client (Putty), Log into the server using your an account
2. Become the LDAP User  
sudo -u dbuser -i (this prompts for the remote\_user’s credentails
3. run an command  
echo “logged in as dbuser”
4. Perform an On-Line backup of the DB service

telnet localhost 4111

Welcome to the DB Console

> dump db;  
> Starting dump

> logout;

1. cd /app/TSA/data/backups (as dbuser)

Appreciate any help and thanks in advance.
