Play the playbook unprivileged user

29 views
Skip to first unread message

m.hi...@gmail.com

unread,
Jun 21, 2017, 12:29:56 PM6/21/17
to Ansible Project
Hello! I need to play the playbook unprivileged user. The user is not allowed to use bin/sh and usr/bin/python. How to solve this? Help me please!

Madhu

unread,
Jun 22, 2017, 2:12:14 AM6/22/17
to ansible...@googlegroups.com
How are you calling the playbook?

Sent from my iPhone

On Jun 21, 2017, at 12:01 AM, m.hi...@gmail.com wrote:

Hello! I need to play the playbook unprivileged user. The user is not allowed to use bin/sh and usr/bin/python. How to solve this? Help me please!

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a6ec4a9b-8d38-4730-99c2-fba353af63c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

m.hi...@gmail.com

unread,
Jun 26, 2017, 10:16:58 PM6/26/17
to Ansible Project
ansible-playbook -i 192.168.10.11, /etc/ansible/install_play.yml -u user --private-key=/home/user/.ssh/id_rsa -vvv
And executable with /bin/sh -c '"'"'sudo -H -S -u root /bin/sh -c
But user without /bin/sh in sudoers file

четверг, 22 июня 2017 г., 9:12:14 UTC+3 пользователь Madhusudhanan Santhanam написал:

m.hi...@gmail.com

unread,
Jun 26, 2017, 10:17:06 PM6/26/17
to Ansible Project
ansible-playbook -i <host>, /etc/ansible/install_play.yml -u <user> --private-key=/home/<user>/.ssh/id_rsa -vvv
And i see /bin/sh -c '"'"'sudo -H -S -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS
But unprivileged user doesn't have sudo /bin/sh.
How run without executable /bin/sh?

четверг, 22 июня 2017 г., 9:12:14 UTC+3 пользователь Madhusudhanan Santhanam написал:
How are you calling the playbook?

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages