RE: Kickstart User Creation

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

 



I dont know the issue with encrypted passwds. As said before can be
picked up from shadow file.
or if you really want..  generate it .Create an executable ( compiled 4
line C code, using crypt(), and seed as same as supplied passwd
generates the system passwds)
 

-----Original Message-----
From: John [mailto:red@xxxxxxxxxxxxxxxxxxxxxxx]
Sent: Monday, April 28, 2003 1:10 AM
To: 'kickstart-list@xxxxxxxxxx'
Subject: Re: Kickstart User Creation


On Mon, 28 Apr 2003, Gareth Bromley wrote:

> On Sun, 27 Apr 2003, Robert Denton wrote:
> > useradd -G root -p menace phantom
> > To create a user by the name of phantom with a the password menace.
This
> > didn't work and after a review of the man page associated with
useradd, it
> > would seem that if you are going to include the password in this
command you
> > need to supply it in an encrypted form (with crypt(3)) and I am not
quite
> > certain how to do that.  I also considered going the other route:
> > useradd -G root phantom
> > passwd phantom
> > But that requires further interaction and this doesn't seem to be
possible
> > in a kickstart post installation script.  Has anyone tried this at
all? I
> > would appreciate any advice regarding the best way to do this.
> The best way is to make use of the usermod and associated tools.
> 
> e.g.
> /usr/sbin/useradd myuser
> chfn -f 'A User' myuser
> /usr/sbin/usermod -p '$1$CrackThisOnePlease!!' myuser

That requires an encrypted password, just the problem Robert wants to
overcome.


-- 
Please, reply only to the list.

Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb




_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.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