Anyway to read py files?

I know that it’s useless to change py or js or any files in lms edx-platfrom in docker. But when i faced up new edx bug i’d prefer to open it and read some code. So, looks like good idea to:

tutor local run lms bash
apt-get update
apt-get install nano or vim
nano .../instructor_dash.js

BUT gets:

app@613daf1c1691:~/edx-platform$ apt-get update
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
app@613daf1c1691:~/edx-platform$ apt-get install nano
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Yes, user “app” that logged in - not in sudo rigths. Root’s password is unknown

bash: sudo: command not found


You need try with:

su -

it change to root user

You can use the following commands to mount the edx-platform folder on your host device to directly access the files within your host machine.

tutor dev bindmount lms /openedx/edx-platform
tutor dev runserver --volume=/openedx/edx-platform lms

You can check the Tutor documentation for more details.

it needs root’s password

thank you, it’s persisely what I need!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.