Users + kikstart

Robinson, Andrew W. Andrew.W.Robinson at mms.gov
Fri Nov 26 17:14:24 UTC 2004


Look at the useradd man page. You can pass useradd an encrypted password
when you invoke the command. In fact, if you do not specify the -p option,
useradd will create the account with *NO* password. 

Programs that are run in the %post section are not part of the anaconda
installation. The %post section is a "hook" for extra programs to accomplish
tasks that anaconda does not provide for. Because they are not part of
anaconda, they will not interactively ask for missing information. In fact,
I've seen threads on this listserv about how to get programs in the %post
section to make interactive queries. 

Bottom line is running programs in the %post section is similar to running
them in shell scripts. If the programs queries the user in a shell script,
it will attempt to query the user in the %post section. If the program does
not query the user in a shell script, it will not attempt to query the user
in %post section.

At least I think this is the way it works.

Andrew 

> -----Original Message-----
> From: Edgar Chillón 'Chillux' [mailto:e_chillon at yahoo.com.mx]
> Sent: Friday, November 26, 2004 10:12 AM
> To: Discussion list about Kickstart
> 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