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

Re: set password for live user

One more thing,

On Tue, Jul 14, 2009 at 07:37:28PM +0300, Tzafrir Cohen wrote:
> Hi
> I attach an initramfs hook script I added to my live CD
> (config/chroot_local-includes/usr/share/initramfs-tools/scripts/) to be
> able to set a different password for the live user.


> # If it was not set, one way or the other, we have nothing to do:
> if [ ! "${PASSWORD}" ]
> then
> 	exit 0
> fi
> log_begin_msg "Setting a custom password for the default user"
> echo "${USERNAME}:${PASSWORD}" | chroot /root /usr/sbin/chpasswd

Later on I added here an extra line to edit the password of one extra

This is not something I can do on a later script because I don't know
the password (unless I replicate the logic from here).

> log_end_msg

               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen@xorcom.com
+972-50-7952406           mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir

Reply to: