HI,

I can think of two options:

1. Use psh <nodename>  "echo <your_password>\n | sudo -S <cmd>" to automate
the password input for sudo, this is not a secure option because you need
to echo your password on the screen.

2. If your security policy allows, configure the sudo to allow
password-less commands execution.


-------------------------------------------------------------------------
 Li,Guang Cheng (李光成)
 IBM China System Technology Laboratory
 Email: [email protected]
 Address: Building 28, ZhongGuanCun Software Park,
          No.8, Dong Bei Wang West Road, Haidian District Beijing 100193,
PRC

北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193




From:   "ROSENZWEIG, DANIEL" <[email protected]>
To:     "[email protected]"
            <[email protected]>
Date:   2015/09/21 10:06
Subject:        [xcat-user] psh using sudo



Hi,

We are not allowed to log into servers or ssh across servers as root.
We are unable to  even su as root using sudo.
We are able to add lists of commands in a sudoers file though.

Sudo is configured to prompt the user for a password, which is an issue if
doing multiple servers in parallel.

Is there a recommended way to use psh in such a configuration?

Thanks!
------------------------------------------------------------------------------

_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to