Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OctoPrint runs as pi user #793

Open
johnny-b-goode opened this issue Sep 15, 2022 · 1 comment
Open

OctoPrint runs as pi user #793

johnny-b-goode opened this issue Sep 15, 2022 · 1 comment

Comments

@johnny-b-goode
Copy link

I installed OctoPi 0.18.0 and was going through various local configuration tasks. When preparing to remove the default pi user I noticed that OctoPrint seems to be installed to, or using a number of files located in, the pi home directory (/home/pi). This is confirmed by looking at /etc/systemd/system/octoprint.service:
... User=pi ExecStart=/home/pi/oprint/bin/octoprint serve --host=${HOST} --port=${PORT} ...

In general, OctoPrint should probably run as its own user. Additionally, this may be a problem in the future, as the pi user has been removed by default: https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/.

@cp2004
Copy link
Contributor

cp2004 commented Sep 15, 2022

Yes, we're all aware of how it works, but changing it now means changing/making outdated a huge number of guides and resources and knowledge, which there is no bandwidth to solve right now in the project. It is not a simple change.

Maybe in the future it will be changed, but not any time soon, and it would probably be part of a wider rework of how some of the stuff is installed to make it worthwhile the pain of changing it.

The problem of removing the default Pi user was solved already, and users can customise the username with the Raspberry Pi imager if they would like to before flashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants