Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Promise 378 controller
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
-none-

-none-

2007-09-12       - By Caetano, Greg

 Back
Anne:

Here is an example out of a RHEL4 manual... Look at the simply python
code in the "Warning" section that helps you set an initial password for
a user

http://www.redhat.com/docs/manuals/RHEL-4 (See http://HEL-4.ora-code.com)-Manual/en-US/System_Administra
tion_Guide/s2-redhat-config-users-passwd-aging.html

==========================
To assign an initial password, use the following steps:
Start the command line Python interpreter with the python command. It
displays the following:

Python 2.4.3 (#1, Jul 21 2006, 08:46:09) [GCC 4.1.1 20060718 (Red Hat
4.1.1-9)] on linux2 Type "help", "copyright", "credits" or "license" for
more information. >>>
                 
At the prompt, type the following commands. Replace <password> with the
password to encrypt and <salt> with a random combination of at least 2
of the following: any alphanumeric character, the slash (/) character or
a dot (.):

                   import crypt; print
crypt.crypt("<password>","<salt>")
                 
The output is the encrypted password, similar to '12CsGd8FRcMSM'.

Press Ctrl-D to exit the Python interpreter.

At the shell, enter the following command (replacing
<encrypted-password> with the encrypted output of the Python
interpreter):

                   usermod -p "<encrypted-password>" <username>
                 
Alternatively, you can assign a null password instead of an initial
password. To do this, use the following command:

             usermod -p "" username

======================================
Greg Caetano
greg.caetano@(protected)

-- --Original Message-- --
From: redhat-list-bounces@(protected)
[mailto:redhat-list-bounces@(protected)] On Behalf Of Anne Moore
Sent: Wednesday, September 12, 2007 8:04 AM
To: redhat-list@(protected)
Subject: How to create encrypted password via command line

Hi All

Does anyone know of a quick/painless way to create an encrypted {crypt}
password via the command like on Red Hat? I need my users to do this and
I don't want them to have to write much syntax, etc., as that will be
too much for them. I was hoping there was some built-in (or other)
method that allows creating an encrypted password, depending on what the
user types in for the password.

Thank you!

Anne

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list