-
Notifications
You must be signed in to change notification settings - Fork 124
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
adduser problem - Package installation via cloudsmith #678
Comments
Can you generate the needed user on the command line? |
Hi - yes that works fine.... I just created the _vzlogger user as well, without issues. So I guess the modified regex pattern in adduser.conf has some effect. Surprise.. here wo go:
So I guess the workaround works now. |
Sorry. Missed that one.
Did you delete the created users before you retried installing the package? If not, my bet is the needed user already existing "solved" the problem. |
Hi - no, I did not delete the user. I think you are right. I feel like I am pretty close to get my volkszähler up an running... this weekend. Shall I change the pattern back to the original expression too reproduce the issue in the installation process, or do you have enough information? I think its a pretty small thing that breaks the package installation. Let me know if I can assist you... In the meantime, I am a happy customer by adding the user manually ; ) |
adduser maintainer from Debian here. Yes, to create a user with an underscore you need --force-badname, as mentioned in the error message. |
@Zugschlus is there a best practice how to name "system"-users (without home directory) for Debian? |
this was introduced by #628 8e28a5c |
as referenced in #628 :
this appears to entail that scripts generating such an account have to use |
I have asked about the issue on the Debian developer list. I'll fix this according to the outcome. |
The script is creating a system user. Therefore
should be applied. This however allows a leading underscore. The above is however from Debian trixie. |
https://metadata.ftp-master.debian.org/changelogs//main/a/adduser/adduser_3.134_changelog
https://packages.debian.org/search?keywords=adduser&searchon=names&suite=all§ion=all
so this should work on stable and beyond, and only break on oldstable. |
Even though you, @r00t- have it all together, I still want to answer your @narc-Ontakac2 question, maybe 8 hrs late...
The regex line was a comment and the regex was missing the underscore. Last two lines:
I felt reluctant to upgrade to stable, since lots of stuff on that Raspi 3B (PiHole, z-wave controller... soon volkszähler) seem to be tested toward bullseye. But you are right - its about time. Stable should stable enough for an dist-upgrade |
Unfortunately the trixie man page for adduser states
So special-casing is needed unless we bet on the adduser maintainers being sloppy regarding their announcement. Will be done, but since it is not completely trivial it might take a day. |
@Zugschlus: |
There is PR #679 by now, I do however still need to test it. |
@kmecke In case you haven't upgraded yet - could you remove vzlogger, do a |
Hi @narc-Ontakac2 - sorry, I did the upgrade (vzloggger still not running, but the user is not the issue I guess). I have a backup of the old system, but I will not find the time to restore it and test it soon (maybe in two weeks)... |
Don't, that is too much effort. |
Inzwischen hat auch der Test für die Installation auf bullseye mit piuparts geklappt. |
After the package installation via cloudsmith as described in the Readme in section "Debian and Raspberry Pi OS Packages" everything works out nice, until the configuration of the package. I think there is just the option missing so that the user _vzlogger user will be created correctly.
My workaround, which does not work (but why?):
Maybe you want to change the username OR add the --force-badname
... and thank you for your great work at this project!
The text was updated successfully, but these errors were encountered: