[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Live Build Question On Debian Buster



Hi everyone!

Live build works great on Debian 10 but I cannot figure out something.

My Goal >
1)Change the user password of the live user
2)Have all applications request the password like on a regular install

Solution >
1)Remove /etc/sudoers.d/live which live-build creates by default and contains the line that is added to the /etc/sudoers file and causes all apps to run without password prompt. Namely  "user  ALL=(ALL) NOPASSWD: ALL" 

2)Write a hook which sets a new user password at boot, since the user is created at this time by live-config.

The live build manual recommends to use the passwd example hook located in /usr/share/doc/live-config/examples/hooks and add it to config/includes.chroot/lib/live/config/

This did not work for me at all, unfortunately. Also, I wasn't quite sure what "prefix" needed to be applied, since this actually runs at boot time. I called mine "2000-passwd.hook.chroot".

I also tried by creating my own hook to change the passwd at boot time, by placing it in the same directory, but this also failed.
This was my command "echo user:pass | /user/sbin/chpasswd"

Any help would be appreciated!


Reply to: