Search This Blog

Friday, April 10, 2009

Set / Reset a password to vi file.

[Set a password]

$vim -x filename

[This will prompt you the key]

[To Change or Delete the password, open file]

$vim filename

[Enter password]
[now edit file & type as below]

:set key=newpassword

[save using :wq & this will reset the password]
[If you use blank password here this will delete the password]

No comments:

Post a Comment