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

Installation as different user (not user pi) #1785

Closed
bigi-io opened this issue Mar 14, 2022 · 10 comments · Fixed by #2132
Closed

Installation as different user (not user pi) #1785

bigi-io opened this issue Mar 14, 2022 · 10 comments · Fixed by #2132

Comments

@bigi-io
Copy link

bigi-io commented Mar 14, 2022

Feature Description

Right now, the installation routine does not work, if not run as the user pi

What functionality would you like to see in your phoniebox?

it would be cool, if the installation would work without creating the user pi

How do you envision the feature to work from a users perspective?

same installation procedure if logged in as other sudo-user

Further information that might help

if not possible, it would be nice, if the installation guide is pointing to the necessity of creating user pi:
sudo useradd pi
sudo usermod -aG sudo pi

@s-martin
Copy link
Collaborator

s-martin commented Apr 8, 2022

@s-martin
Copy link
Collaborator

@pabera is this adressed in future3?

@Kreiszahler
Copy link

I would highly appriciate a version running with the latest RaspiOS.

@s-martin
Copy link
Collaborator

Version 2.4 was released yesterday, which also includes PR #1543.

@bigi-io, you might want to check 2.4, if this fixes your issue.

@mikea
Copy link

mikea commented Jan 21, 2023

Still has user pi backed in:

e.g.:

$ cat /etc/systemd/system/phoniebox-gpio-control.service
[Unit]
Description=Phoniebox GPIO Control Service
After=network.target iptables.service firewalld.service

[Service]
Type=simple
User=pi
Group=pi

Fresh install on a fresh raspbian.

@mikea
Copy link

mikea commented Jan 21, 2023

It is worth noting that fresh version of raspbian lite asks for a user-name as part of first boot. So it will be more and more likely not to have pi user.

@AlvinSchiller
Copy link
Collaborator

@s-martin @pabera as this isn't a trivial change, should there be a check on installation if the current user is "pi" and quit otherwise? This would at least prevent upcoming issues of this kind until a proper solution is implemented.

@s-martin
Copy link
Collaborator

s-martin commented Oct 7, 2023

I agree, a check on the name could at least give the user a hint what's going on.

In addition we should mention it in our docs that Phoniebox needs 'pi'.

@s-martin s-martin linked a pull request Oct 7, 2023 that will close this issue
@AlvinSchiller
Copy link
Collaborator

AlvinSchiller commented Oct 7, 2023

In addition we should mention it in our docs that Phoniebox needs 'pi'.

The current docs already mention that the User "pi" should / needs to be used.

@s-martin
Copy link
Collaborator

s-martin commented Dec 3, 2023

#2132 will fix this for future3.

For 2.x we won't fix this.

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

Successfully merging a pull request may close this issue.

6 participants