Thak you? How to install a package in the nfsroot? Must i do 'apt-get install makepasswd'?<br><br><br><div class="gmail_quote">2010/9/13 Stephan Hermann <span dir="ltr"><<a href="mailto:sh@sourcecode.de">sh@sourcecode.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Mon, Sep 13, 2010 at 10:06:21AM +0000, mamadou diop wrote:<br>
> Hello, instead of login 'fai' and password 'fai', i want after my<br>
> installation the user of the new system installed is<br>
> 'student' and his password 'student'. What to do?<br>
<br>
</div></div>you need to write your own script for adding users to your to be deployed system.<br>
<br>
Something like this will help you with this:<br>
<br>
in your NFSROOT install "makepasswd" package<br>
<br>
------------<br>
<br>
#!/bin/bash<br>
user="student"<br>
echo "student" > $target/root/clearpassword.txt<br>
<br>
makepasswd --clearfromfile --crypt-md5 | while read pw password ; do<br>
$ROOTCMD useradd -d /home/${user} -s /bin/bash -G groupname -m -p ${password} -U ${user}<br>
done<br>
<br>
<br>
-----------------<br>
<br>
<br>
<br>
<br>
now you have your student account with password "student" inside your to be deployed system.<br>
<br>
This is untested, but should work out of the box<br>
<br>
Regards,<br>
<font color="#888888"><br>
\sh<br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAkyOC8wACgkQwYnnM8CY76jRZQCghjf/NAaWeEpHi/rAuJ/4l372<br>
hsYAnirL1tvX2BqI8FLa6jLbHOIX8gG3<br>
=LTf3<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br>