Re: RH 6.2 useradd

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

 



These two lines work for me:

# Add cpxuser so we can telnet in
/usr/sbin/useradd cpxuser
echo cpxuser:password | /usr/sbin/chpasswd

Colby Voorhees wrote:

I'm trying to add two users in the %post section. The installation creates
the
users and home directories, but they can't log in immediately after reboot.
Below is the switches I've used to no avail.

useradd -d /home/user -s /bin/tcsh -u 1001 -g 1 -p userpw

useradd -p `perl -e 'print crypt("userpw", "Xd");'` -d /home/user -s
/bin/tcsh -u 1001 -g 1

Anyone have a line for Redhat 6.2, to add users that can log in other than
root?
I wasn't able to find anything in the archives or Manual that work.

                                  --
                     Joe Cooper <joe@xxxxxxxxxxxxx>
                 Affordable Web Caching Proxy Appliances
                        http://www.swelltech.com





[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