Needs to develop a script which will automate password change

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Needs to develop a script which will automate password change

1,694件の閲覧回数
vijith_g1
Contributor II

Hi,

In my current project I must develop a script which will automate changing password. Manually I cannot enter the password. The script has to provide the password. When I checked the passwd command option I could not find --stdin option. Please let me know any solution for this

 

echo "Password \password"| passwd --stdin root

did not work

reason  

1: --stdin option not available.

2: echo not putting the "Password" in new password: option

Thanks & Regards

Vijith G

ラベル(4)
0 件の賞賛
返信
2 返答(返信)

1,643件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Sorry, I don't understand your question. Could you tell me more details about it? Where to use the script to change the password?

0 件の賞賛
返信

1,643件の閲覧回数
vijith_g1
Contributor II

My responsibility to develop a installation script. As part of the script I have to configure password for root user.This password configuration should be automated. Password should not enter manually.

So i tried some command configuration . And I found that in yocto linux for the command passwd does not having --stdin option.

I am looking for some other options by new commands or modifying /etc/shadow file.

0 件の賞賛
返信