Vi editor save command not working

I am doing DevOps bootcamp lab, Few commands like :w or :wq are not working in vi editor to save. Please help.

Mostly You don’t have permission to write to the file: If the file you’re editing is owned by another user.

As part of Lab exercise, it is expected to modify the file, then only exercise ‘check’ will be cleared. Hence need to modify and save the file. Any solution? Please help.

Hi @Bhabanisankar_p,

On which lab did you have this issue ?