Giter Club home page Giter Club logo

Comments (7)

pelwell avatar pelwell commented on June 4, 2024

I would imagine that the user creation process modifies that file to change the userid - why don't you try it?

from raspberrypi-sys-mods.

XECDesign avatar XECDesign commented on June 4, 2024

It's working as intended. General questions are better asked on the forum.

from raspberrypi-sys-mods.

CodeTherapist avatar CodeTherapist commented on June 4, 2024

I would imagine that the user creation process modifies that file to change the userid - why don't you try it?

Please don't assume I didn't try it - you don't know me.

It's working as intended. General questions are better asked on the forum.

It works partially. I do have a private fork of the pi-gen. In the past, setting the FIRST_USER_NAME and FIRST_USER_PASS with the config file was the way to go (what I did). The default user pi was recently removed, and the first-user-process changed drastically. Unfortunately, when something is set for FIRST_USER_NAME the replacement within the 010_pi-nopasswd doesn't work. That is why it was not working for me as expected.

@XECDesign What I did now, is a sub step within the staging steps to create the userconf in /boot. Wouldn't be that a good replacement to allow customized pi-gen repositories to still use FIRST_USER_NAME/PASS?

from raspberrypi-sys-mods.

XECDesign avatar XECDesign commented on June 4, 2024

Please don't assume I didn't try it - you don't know me.

It's because we don't know you that we can't assume that you did.

Unfortunately, when something is set for FIRST_USER_NAME the replacement within the 010_pi-nopasswd doesn't work.

That sounds like a legitimate issue with pi-gen that needs to be fixed, but it would've been there before the user rename scripts were added.

@XECDesign What I did now, is a sub step within the staging steps to create the userconf in /boot. Wouldn't be that a good replacement to allow customized pi-gen repositories to still use FIRST_USER_NAME/PASS?

I think so, but some people weren't happy with that suggestion on the pi-gen issue tracker.

from raspberrypi-sys-mods.

CodeTherapist avatar CodeTherapist commented on June 4, 2024

@XECDesign Thanks for your response much appreciated 👍

from raspberrypi-sys-mods.

gromain avatar gromain commented on June 4, 2024

@CodeTherapist Sorry to bump this, but can you elaborate on your solution?
Do you create a userconf that respect what was set in FIRST_USER_NAME/PASS?

@XECDesign, as was explained in the issue you linked, the goal is to have a system already in place to respect FIRST_USER_NAME/PASS when they are set, otherwise, those options should just be removed from the config file and from the documentation.
If including something at the staging step that respect FIRST_USER_NAME/PASS works, then perfect.
I would be nice to avoid forcing people to maintain a lot of additional moving parts just to keep the previous behavior. As we established already, this change breaks backward compatibility in a lot of ways (and to be clear, I understand the security point of view).

from raspberrypi-sys-mods.

CodeTherapist avatar CodeTherapist commented on June 4, 2024

@gromain Yes, I did a additional step to put a userconfig into the boot with the info from FIRST_USER_NAME/PASS.
Unfortunately it seems still an issue - even with the new option DISABLE_FIRST_BOOT_USER_RENAME=1.

from raspberrypi-sys-mods.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.