change user FAI

Stephan Hermann sh at sourcecode.de
Mon Sep 13 13:32:30 CEST 2010


On Mon, Sep 13, 2010 at 10:06:21AM +0000, mamadou diop wrote:
> Hello, instead of login 'fai' and password 'fai', i want after my
> installation the user of the new system installed is
> 'student' and his password 'student'. What to do?

you need to write your own script for adding users to your to be deployed system.

Something like this will help you with this:

in your NFSROOT install "makepasswd" package

------------

#!/bin/bash
user="student"
echo "student" > $target/root/clearpassword.txt

makepasswd --clearfromfile --crypt-md5 | while read pw password ; do 
	$ROOTCMD useradd -d /home/${user} -s /bin/bash -G groupname -m -p ${password} -U ${user}
done


-----------------




now you have your student account with password "student" inside your to be deployed system.

This is untested, but should work out of the box

Regards,

\sh
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : nicht verfügbar
Dateityp    : application/pgp-signature
Dateigröße  : 198 bytes
Beschreibung: Digital signature
URL         : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100913/28cfde15/attachment.bin 


More information about the linux-fai mailing list