enhanced korn shell to switch to root user

34 views
Skip to first unread message

Priyal Patil

unread,
Nov 23, 2020, 6:39:39 AM11/23/20
to Ansible Project
Hi,

Anyone knows if this can be achieved to to become root user thorugh, if we are using EKSH.

sudo  /usr/localcw/bin/eksh  

Regards
Priyal Patil

Roberto Paz

unread,
Nov 23, 2020, 6:47:45 AM11/23/20
to Ansible Project
If you are planning to use it as part of a "shell" module, this provides an attribute to specify the shell to be used.

The attribute for the module is "executable".

Priyal Patil

unread,
Nov 25, 2020, 1:19:43 PM11/25/20
to ansible...@googlegroups.com
Hi,

I wanted to use with other modules like yum 
Regards 
Priyal Patil
--
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-project+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/62e3dbd4-6901-4a3d-a3ae-f57a697739e0n%40googlegroups.com.

Roberto Paz

unread,
Nov 25, 2020, 1:53:50 PM11/25/20
to Ansible Project
I'm maybe wrong, but it is my understanding that ansible modules don't use a shell underneath (except the shell module).

If you want to use a task to remotely run a command, you should use the shell/command module.

El miércoles, 25 de noviembre de 2020 a la(s) 12:19:43 UTC-6, priy...@gmail.com escribió:
Hi,

I wanted to use with other modules like yum 
Regards 
Priyal Patil


On Monday, November 23, 2020, Roberto Paz <rjr...@gmail.com> wrote:
If you are planning to use it as part of a "shell" module, this provides an attribute to specify the shell to be used.

The attribute for the module is "executable".

El lunes, 23 de noviembre de 2020 a la(s) 05:39:39 UTC-6, priy...@gmail.com escribió:
Hi,

Anyone knows if this can be achieved to to become root user thorugh, if we are using EKSH.

sudo  /usr/localcw/bin/eksh  

Regards
Priyal Patil

--
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.
Reply all
Reply to author
Forward
0 new messages