Paul_Bardeskar Absent Member.
Absent Member.
3400 views

Switching User from Normal User to Super User

To execute any ROOT owned Operational commands for UNIX operating System, we need to execute a command "sudo su - root" to change the profile from Normal Account to Super User Account. But we don’t have any readymade solutions available in the OO's Existing flows.
 

Using SHELL WIZARD tool from OO we have tried to achieve this but it is storing the password in plain text which is a security breach and against audit policy.

 

Please advise how can we solve this problem, do we have a solution for below :

a)  Create a New Flow - which takes initial password as a variable and passes to sudo string as a variable for password in encrypted format

OR

b)  Create a New Flow - The initial user credentials are entered for the flow and when we pass "sudo su - root" as a command, it should ask for password prompt.

 

Note : We cannot store passwords inside the flow, because of security breach and against audit policy.

Labels (1)
0 Likes
1 Reply
ysfhrsnl Absent Member.
Absent Member.

Re: Switching User from Normal User to Super User


@Paul_Bardeskar wrote:

To execute any ROOT owned Operational commands for UNIX operating System, we need to execute a command"sudo su - root" to change the profile from Normal Account to Super User Account. But we don’t have any readymade solutions available in the OO's Existing flows.
 

Using SHELL WIZARD tool from OO we have tried to achieve this but it is storing the password in plain text which is a security breach and against audit policy.

 

Please advise how can we solve this problem, do we have a solution for below :

a)  Create a New Flow - which takes initial password as a variable and passes to sudo string as a variable for password in encrypted format

OR

b)  Create a New Flow - The initial user credentials are entered for the flow and when we pass "sudo su - root" as a command, it should ask for password prompt.

 

Note : We cannot store passwords inside the flow, because of security breach and against audit policy.



Hi,

You can do it with ssh shell. Below you can see an example. 

 

expect password

send ${password}

or you can do it with sudo su - c " <script>" -   it runs your script as root user. If you want to run with an another user you can write your username name instead of - .

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.