Re: Add user during OS install with kickstart?

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

 



On Tue, Aug 29, 2000 at 04:02:51PM -0700, Li, Chun Ming wrote:
> 
> Hi..
> 
> Can some one tell me if there is a way to add a user during OS install with
> kickstart.
> If so, how
> 
> Thanks in advance
> 
> -Chun

The following worked for me:

    %post
    useradd -u 501 -g 100 -d /home/luser -s /bin/tcsh -c "Local user" -m luser
    echo luser_password | passwd --stdin luser

Of course, the password is in clear text, but if this is a temporary
arrangement (i.e., the password will be changed immediately after install), 
it might be OK.


Ajay





[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