Users + kikstart
Peter Eisch
peter at boku.net
Fri Nov 26 20:47:55 UTC 2004
Suppose I did this on a host:
[user at host user]$ perl
print crypt('password', 'ec') . "\n";
ecB9Q0xjW6h1g
[user at host user]$
Then copy/paste this into the %post on the install:
/usr/sbin/adduser -c "Local Admin" -d "/home/admin" -m -G wheel \
-p ecB9Q0xjW6h1g admin'
Note the usage and the line wrapping for reading's sake. After it's run,
the 'admin' login will have the 'password' as the password.
peter
> From: "Edgar Chillón 'Chillux'" <e_chillon at yahoo.com.mx>
> Reply-To: Discussion list about Kickstart <kickstart-list at redhat.com>
> Date: Fri, 26 Nov 2004 10:12:22 -0600 (CST)
> To: Discussion list about Kickstart <kickstart-list at redhat.com>
> Subject: RE: Users + kikstart
>
> But how do I determine the password automatically , i
> supusse if I put the user add in the %post it will ask
> me for a password wouldn`t it ?
>
>
> --- "Robinson, Andrew W." <Andrew.W.Robinson at mms.gov>
> escribió:
>> You could run useradd in the %post section. Useradd
>> will take an encrypted
>> password so the password will not be exposed in the
>> Kickstart file.
>>
>> HTH, Andrew Robinson
>>
>>> -----Original Message-----
>>> From: Edgar Chillón 'Chillux'
>> [mailto:e_chillon at yahoo.com.mx]
>>> Sent: Friday, November 26, 2004 9:41 AM
>>> To: Discussion list about Kikstart
>>> Subject: Users + kikstart
>>>
>>> Is there a way to add users using kickstart
>>> automatically ?
>>>
>>>
>>> I need a temporal user with this respectly
>> password
>>> ... how do I do it ?
>>>
>>> Regards ...
>>>
>>> =====
>>>
>>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>> Edgar Alberto Chillón Escárcega
>>> Security Cunsultant - Pfizer OS
>>> Mobile: 04455-1951-9194
>>>
>>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>> PublicKeyID: 0x584CF620 [DH/DSS]
>> http://keyserver.noreply.org/
>>> FingerPrint: 1EDE EF26 C6AA 17DC 1A59 97C8 5270
>> 1942 584C F620
>>>
>>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>>
>>>
>>
> _________________________________________________________
>>> Do You Yahoo!?
>>> La mejor conexión a internet y 25MB extra a tu
>> correo por $100 al mes.
>>> http://net.yahoo.com.mx
>>>
>>> _______________________________________________
>>> Kickstart-list mailing list
>>> Kickstart-list at redhat.com
>>>
>>
> https://www.redhat.com/mailman/listinfo/kickstart-list
>>
>> _______________________________________________
>> Kickstart-list mailing list
>> Kickstart-list at redhat.com
>>
> https://www.redhat.com/mailman/listinfo/kickstart-list
>>
>
> =====
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> Edgar Alberto Chillón Escárcega
> Security Cunsultant - Pfizer OS
> Mobile: 04455-1951-9194
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> PublicKeyID: 0x584CF620 [DH/DSS] http://keyserver.noreply.org/
> FingerPrint: 1EDE EF26 C6AA 17DC 1A59 97C8 5270 1942 584C F620
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>
> _________________________________________________________
> Do You Yahoo!?
> La mejor conexión a internet y 25MB extra a tu correo por $100 al mes.
> http://net.yahoo.com.mx
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>
More information about the Kickstart-list
mailing list