Re: Users + kikstart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The man pages say -p is 'username as returned by crypt'

But I've reason to belive that isn't quite so, It should be just whatever you 
want to end up in /etc/shadow and use to confirm your users passwords.

So if you were using crypt then crypt would be suitable.

However if you use md5 passwords, as most people do now?, you should pass 
those.

For some reason I like to create my users with 3 lines

/usr/sbin/useradd -u 5000 username
/usr/bin/chfn -f 'Full Name xTelephoneExtension' username
/usr/sbin/usermod -p '$1$ufc1f0$f8pM9Hf.e5k92IhCS2tmh.' username

one way to generate those is with grub-md5-crypt 

Neil
On Friday 26 November 2004 22:42, Robinson, Andrew W. wrote:
> Sounds good. Give it a try and see if it works.
>
> Andrew
>
> > -----Original Message-----
> > From: Peter Eisch [mailto:peter@xxxxxxxx]
> > Sent: Friday, November 26, 2004 2:48 PM
> > To: Discussion list about Kickstart
> > Subject: Re: Users + kikstart
> >
> >
> > Suppose I did this on a host:
> >
> > [user@host user]$ perl
> > print crypt('password', 'ec') . "\n";
> > ecB9Q0xjW6h1g
> > [user@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@xxxxxxxxxxxx>
> > > Reply-To: Discussion list about Kickstart <kickstart-list@xxxxxxxxxx>
> > > Date: Fri, 26 Nov 2004 10:12:22 -0600 (CST)
> > > To: Discussion list about Kickstart <kickstart-list@xxxxxxxxxx>
> > > 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@xxxxxxx>
> > >
> > > 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@xxxxxxxxxxxx]
> > >>
> > >>> 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@xxxxxxxxxx
> > >
> > > https://www.redhat.com/mailman/listinfo/kickstart-list
> > >
> > >> _______________________________________________
> > >> Kickstart-list mailing list
> > >> Kickstart-list@xxxxxxxxxx
> > >
> > > 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@xxxxxxxxxx
> > > https://www.redhat.com/mailman/listinfo/kickstart-list
> >
> > _______________________________________________
> > Kickstart-list mailing list
> > Kickstart-list@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/kickstart-list
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux