LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I encounter with an error in nALFS when running a xml file. (https://www.linuxquestions.org/questions/linux-newbie-8/i-encounter-with-an-error-in-nalfs-when-running-a-xml-file-4175421837/)

k84834 08-13-2012 05:55 AM

I encounter with an error in nALFS when running a xml file.
 
I follow steps in Building LFS-6.0 with nALFS 1.2.3
in step 7 , at "And do what it says press the m key to run the elements we marked above and presto you lfs-6.0 system will start building." point , I enter m key and chapter 5 is running that stoped with below error :

┌────────────────────────────────────────────────┤ LFS.xml ├───┤ nALFS 1.2.4 ├─┐
│ * ! - LFS.xml │
│ * ! + Chapter 5 - Constructing a Temporary System │
│-> + Chapter 6 - Installing Basic System Software │
│ + Chapter 7 - Setting Up System Bootscripts │
│ + Chapter 8 - Making the LFS System Bootable │
│ + Chapter 9 - The End │
│ + Finishing Up │
│ │
│ │
│ │
├──────────────────────────────────────────────────────┤ r s w h B ├─┤
│I: Executing system command in /: │
│I: id -u lfs &> /dev/null || useradd -s /bin/bash -g lfs -m -k /dev/null l│
│fs │
│-: id: lfs: No such user │
│I: Executing system command in /: │
│I: echo lfs:lf1nstl | chpasswd │
│-: chpasswd: (user lfs) pam_chauthtok() failed, error: │
│-: Authentication token manipulation error │
│-: chpasswd: (line 1, user lfs) password not changed │
│E: Execution failed (1). │
│I: Total time executing: 00:00:00 │
└────────────────────────────────────────────────────────────┤ T 00:00:01 [] ├─

what I done to fix this error ? is this error meaning that the user don't exist or chpass command don't running ?


this is the xml file :
<alfs>

<stage name="Adding the LFS User">
<execute command="groupadd -f lfs" />

<execute command="id -u &lfs-user; &amp;> /dev/null || useradd -s /bin/bash -g lfs -m -k /dev/null &lfs-user;" />

<execute command="echo &lfs-user;:&lfs-password; | chpasswd" />

<ownership user="&lfs-user;">
<name>&LFS;/tools</name>
<name>&LFS;&build_dir;</name>
</ownership>
</stage>

</alfs>

Tinkster 08-13-2012 03:56 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 10:06 PM.