You could simply manually edit the /etc/shadow file in your install
directory. Then re-run genimage/packimage and you are done.

Another option is to put the correct /etc/shadow somewhere on your
management node, and then use the syncfiles mechanism to put it in the
correct place.


On Thu, Oct 12, 2017 at 1:36 AM, peng cheng zhu <[email protected]> wrote:

> hi ,all
>     today I try to use the xcat 2.13.7 to build a diskless image
> and  I forget to restore the default table from /opt/xcat/share/xcat/
> templates/e1350/
> so the passwd table is empty
>
> when I build the diskless image ,the /etc/shadows show here :
> [root@node24 ~]# cat /etc/shadow
> root:cluster:13880:0:99999:7:::
> bin:*:16925:0:99999:7:::
> daemon:*:16925:0:99999:7:::
> adm:*:16925:0:99999:7:::
> lp:*:16925:0:99999:7:::
> sync:*:16925:0:99999:7:::
> the correct one should be as below
> [root@node21 ~]# cat /etc/shadow
> root:$5$TtGRLeW1$owEXNhmE2l1GkF58.SD1C4KR6E7nRTALs7kG9Xxpl//:
> 13880:0:99999:7:::
> bin:*:17110:0:99999:7:::
> daemon:*:17110:0:99999:7:::
> adm:*:17110:0:99999:7:::
> lp:*:17110:0:99999:7:::
> sync:*:17110:0:99999:7:::
> shutdown:*:17110:0:99999:7:::
>
> now I have restore the passwd tables ,and try to run genimae /packimage
> base on current status ,but not work ,if I don't want to remove the netboot
> image and rebuild from crash  ,is there any way to make the root password
> to "cluster" ?
>
> I found this because when I run rcons to login the node failed ,thanks for
> everybody that take time to take a look at my questions ,thanks
>
>
>
> 【网易自营|30天无忧退货】仅售同款价1/4!MUJI制造商“2017秋冬舒适家居拖鞋系列”限时仅34.9元>>
> <http://you.163.com/item/detail?id=1165011&from=web_gg_mail_jiaobiao_9>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>


-- 

_______________________________________________________________________
Kevin Keane | Systems Architect | University of San Diego ITS |
[email protected]
Maher Hall, 192 |5998 Alcalá Park | San Diego, CA 92110-2492 | 619.260.6859
<%28619%29%20260-2298>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to