I am trying to deploy OpenEdx instance on MS Azure, for which I am following some instructions. I have created a Virtual Machine on Azure. It is an Ubuntu Linux VM. I have accessed the VM through a Git Bash window and I am stuck at below point in post installation process.

The instruction is like:

Edit this line:




I have changed the line:




But, it is not getting edited. Can any one guide me on this? How do I edit that line? Also,if possible please provide me with a script to complete the installation, if someone has done OpenEdx installation earlier.

  • What do you mean by "not getting edited" ? What editor are you using to edit the file with and how do you edit the editor ? Please update your question with the exact commands used.
    – Soren A
    Mar 13, 2018 at 9:23
  • I installed the OpenEdxwith some commands. Then as per instructions i set up the ports on azure for LMS and CMS. Then I wasasked to run following command:sudo vim /etc/passwd. Then article told me to Edit as below. Edit edxapp:x:1003:1006::/edx/app/edxapp:/bin/false to edxapp:x:1003:1006::/edx/app/edxapp:/bin/bash Mar 13, 2018 at 9:28
  • @ChandrashekharPatil - what happened after you tried to save the file (e.g. using shift-Z-Z)?
    – Yaron
    Mar 13, 2018 at 9:31
  • @ChandrashekharPatil - did you ssh to the Ubuntu machine from your git bash window?
    – Yaron
    Mar 13, 2018 at 9:32
  • I just changed the text and pressed enter. I did not do shift z-z. Do I have to do? Mar 13, 2018 at 9:40

1 Answer 1


When using vim in order to edit a file, you should save the file before exiting.

One way to save the file before exiting is:

  • Press ESC (in order to exit the edit mode)
  • Press Shift+Z+Z In order to save the file and exit

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .