-
Notifications
You must be signed in to change notification settings - Fork 463
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
Snapclient build and install from source permission issue #728
Comments
Did you use make or cmake? |
I used make I followed The actually command I ran to build and install was: |
I just checked and the Snapclient install target will simply execute
while the server makes use of the debian
A similar script exists for the client:
Maybe calling this script from the client make install target would fix the issue. I will try this when I have a free slot. |
I had the same problem some time ago with snapcast and also with pulseaudio. In my understanding of the Linux-Audio-concepts, everyone who wants access to the audio-system has to be member of the group "audio". Therefore you have to decide how you want to integrate any software in the audio-system:
So it might be difficult for the installation/make-script to cover all those aspects. |
I was able to reproduce the issue on my Linux Mint desktop. Using the script fixes the problem. Commit d832d45 |
After building and installing snapclient the service would not start.
Running
systemctl status snapclient.service
produced the following error
After a bit of googling and the tip with error being realted to GROUP I checked the local permissions and found this
Running
cat /etc/password | grep snap
returned
snapclient:x:998:29::/home/snapclient:/bin/bash
Note the group id of 29 as referenced later.
importantly running
cat /etc/group | grep snap
returned nothing
Note that in the script that starts the process it specified a user and group of snapclient
cat /etc/systemd/system/multi-user.target.wants/snapclient.service
returns
I solved the problem by adding the following, not sure if the first command was necessary but the rest solved the problem
sudo usermod -a -G audo snapclient
The above is because the snapclient user was added to the audio group ( part of the install - not by me).
According to /etc/passwd the snapclient user had group 29 (which is the audio group) but was not in the group file as the listed user under audo group - does that make sense?
If it helps, this is the before and after the of that entry in the group file
Before
audio:x:29:pi,shairport-sync
After
audio:x:29:pi,shairport-sync,snapclient
OK, so I then ran these which is what ultimately solved the issue:
sudo groupadd snapclient
and
sudo usermod -a -G snapclient snapclient
I then started the service and it worked.
So raising here as I am not sure why it ended up in this state but maybe something needs to change in the build / install process or maybe it just helps others who have found the same issue resolve it manually.
Environment details
The text was updated successfully, but these errors were encountered: