Re: Kickstart User Creation

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

 



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

Alternatively, we have just removed all post-install user creation how by
moving to a centralised LDAP db of users, so we just need to setup LDAP
with TLSv1 encryption by doing:
authconfig --enableshaow --enablemd5 --enableldap --enableldapauth
--ldpaserver=nameofserver.mycompany.com --ldapbasedn="dc=mycompany,dc=com"
--enableldaptls

This of course brings in some of issues :), such as creating home
directories on boxes, automounting files, PAM LDAP auth etc.. whic can be
mostly fixed by building our own RPMs to fix these issues.

Hope this helps

Gareth





[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