Thank you Stephan for your help. I have used fai-class to add the class to my host but i don't understand<br>it very well in spite of reading the man page.<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;">Hi mamadou,<br>
<div class="im"><br>
<br>
On Monday, September 13, 2010 01:52:03 pm mamadou diop wrote:<br>
> Thak you? How to install a package in the nfsroot? Must i do 'apt-get<br>
> install makepasswd'?<br>
<br>
</div>ok you ssh to your fai box,<br>
then chroot <your FAI-NFSROOT><br>
apt-get install makepasswd<br>
exit<br>
<br>
now you enter your FAI config space and switch to the SCRIPTS directory<br>
<br>
mkdir ACCOUNTS <- this is your class name for those hosts where you want to<br>
install the accounts.<br>
<br>
cd ACCOUNTS<br>
vi 10-add-acounts<br>
<br>
and add the contents to the script<br>
<br>
after that, save it, and chmod 755 10-add-accounts<br>
<br>
Now you add the ACCOUNTS class to your host, redeploy et voila...<br>
<br>
Regards,<br>
<font color="#888888"><br>
\sh<br>
</font><div><div></div><div class="h5">><br>
><br>
> 2010/9/13 Stephan Hermann <<a href="mailto:sh@sourcecode.de">sh@sourcecode.de</a>><br>
><br>
> > 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>
> > you need to write your own script for adding users to your to be deployed<br>
> > 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>
> ><br>
> > $ROOTCMD useradd -d /home/${user} -s /bin/bash -G groupname -m -p<br>
> ><br>
> > ${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<br>
> > be deployed system.<br>
> ><br>
> > This is untested, but should work out of the box<br>
> ><br>
> > Regards,<br>
> ><br>
> > \sh<br>
> ><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>
</div></div></blockquote></div><br>