From e8f1727b0992c029f0faa0b780db5089dbaa466a Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Mon, 9 Apr 2012 03:20:00 -0500 Subject: [PATCH] script/gentree: don't chroot to set password; use -V option to pw to explicitly set etc directory --- script/gentree | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/gentree b/script/gentree index a5338fd..2b1adf7 100755 --- a/script/gentree +++ b/script/gentree @@ -128,7 +128,7 @@ do_admin() { log Create an emergency user admin/admin # delink passwd to ensure it doesn't get patched in-place chk onelink "${sroot}/etc/passwd" "${sroot}/etc/master.passwd" - echo '$1$2rXOWsK/$eiBHA6K7xL96DZbcY24YR0' | chk chroot "${sroot}" /usr/sbin/pw useradd admin -u 999 -g wheel -G operator -c Administrator -d /usr/home/admin -m -s /bin/csh -H 0 + echo '$1$2rXOWsK/$eiBHA6K7xL96DZbcY24YR0' | chk /usr/sbin/pw -V "${sroot}/etc" useradd admin -u 999 -g wheel -G operator -c Administrator -d /usr/home/admin -m -k "${sroot}/usr/share/skel" -s /bin/csh -H 0 } do_overlay() { -- 2.42.0