How to set password for file using vim in Linux/redhat?

Hello All,

I have one query is "How to set the password for file using vi utility in linux.
Please reply to my queries. I am waiting for reply.
Thanks in advance.

Thanks.
Kuddus Shaikh

Perhaps with:

vi -x file

Your question is otherwise vague.

1 Like

It is working fine in my scenario. Also let me know how to unset password for file using vim.

Thanks in advance.

See this thread.

Hi Scott,

Thanks for your reply.
I have successfully removed password from file using your given steps.
Once again thanks a lot.

Thanks
Kuddus Shaikh