Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mkpasswd(8) [bsd man page]

MKPASSWD(8)						      System Manager's Manual						       MKPASSWD(8)

mkpasswd - generate hashed password table SYNOPSIS
mkpasswd [ -p ] passwdfile DESCRIPTION
Mkpasswd is used to generated the hashed password database used by the password library routines (see getpwent(3)). The file passwdfile must be in password file format (see passwd(5)). Mkpasswd generates database files named ``passwdfile.pag'' and ``passwdfile.dir'' (see ndbm(3)). Data subsequently taken from the database files differ from passwdfile in one respect. Rather than storing the encrypted password in the database, mkpasswd stores the offset of the encrypted password in passwdfile. Mkpasswd exits zero on success, non-zero on failure. The -p option causes mkpasswd to create ``passwdfile.orig'', a password file in the standard Version 7 format. SEE ALSO
chpass(1), passwd(1), getpwent(3), ndbm(3), passwd(5), vipw(8) 4.3 Berkeley Distribution February 22, 1989 MKPASSWD(8)

Check Out this Related Man Page

MKPASSWD(1)							 Debian GNU/Linux						       MKPASSWD(1)

mkpasswd - Overfeatured front end to crypt(3) SYNOPSIS
mkpasswd encrypts the given password with the crypt(3) libc function using the given salt. OPTIONS
-S, --salt=STRING Use the STRING as salt. It must not contain prefixes such as $1$. -R, --rounds=NUMBER Use NUMBER rounds. This argument is ignored if the method choosen does not support variable rounds. For the OpenBSD Blowfish method this is the logarithm of the number of rounds. -m, --method=TYPE Compute the password using the TYPE method. If TYPE is help then the available methods are printed. -P, --password-fd=NUM Read the password from file descriptor NUM instead of using getpass(3). If the file descriptor is not connected to a tty then no other message than the hashed password is printed on stdout. -s, --stdin Like --password-fd=0. ENVIRONMENT
MKPASSWD_OPTIONS A list of options which will be evalued before the ones specified on the command line. BUGS
If the --stdin option is used, passwords containing some control characters may not be read correctly. This programs suffers of a bad case of featuritis. SEE ALSO
passwd(1), passwd(5), crypt(3), getpass(3) AUTHOR
mkpasswd and this man page were written by Marco d'Itri <> and are licensed under the terms of the GNU General Public License, version 2 or higher. Marco d'Itri 21 March 2008 MKPASSWD(1)
Man Page

12 More Discussions You Might Find Interesting

1. Linux

MySQL4 config messup on Suse9.1 How to reset?

I'm trying to run phpBB2 software on Apache2, all was fine with setups except I had no password protecting my database. After researching how to do it, I attempted to set password "freddy" to root (for obvious reasons "freddy" isn't the actual pw I used). I now can't login to MYSQL4 using... (1 Reply)
Discussion started by: Mark Ward
1 Replies

2. Shell Programming and Scripting

How to read those files and output to base?

Hi, -rwxr-xr-x 1 abc mkpasswd 2483 Oct 20 15:42 0132200710-ps5_cdrm.unl -rwxr-xr-x 1 abc mkpasswd 1826 Oct 20 15:43 0132200710-ps5_cdrn.unl -rwxr-xr-x 1 abc mkpasswd 1788 Oct 20 15:44 0132200710-ps5_cdro.unl -rwxr-xr-x 1 abc mkpasswd 1681 Oct 20 15:44 0132200710-ps5_cdrp.unl -rwxr-xr-x... (4 Replies)
Discussion started by: rauphelhunter
4 Replies

3. UNIX and Linux Applications

Accessing Oracle via encrypted password

Actually in my application there is an XML file. The password and the user name for the database that I need to access the development box is stored there. But using some UNIX command I am able to access the raw content of the file and not the decrypted code for that password. When I am applying... (3 Replies)
Discussion started by: nandumishra
3 Replies

4. UNIX for Dummies Questions & Answers

hashed commands

How to display hashed commands for your current shell session? Thanks. (1 Reply)
Discussion started by: zhshqzyc
1 Replies

5. Programming

Set password of a user in phpmyadmin

I have a mysql database on the server where I have root access also to phpmyadmin. I have such a database 1, which is a table users where a user named admin. How shall be observed as the password for this user? (1 Reply)
Discussion started by: Mumie
1 Replies

6. Programming

C++ Login System help.

I'm new to C++. I have a text file named idpw.txt which is storing id and password e.g admin password account1 abc john hello Here's my code so far: bool login() { string user,password, user1, password1; ifstream myfile("idpw.txt"); cout << "Please enter your username" <<... (3 Replies)
Discussion started by: andylbh
3 Replies

7. HP-UX

Find list of files that uses password.

Hi, I am looking for a command or script which should list out the files that uses database password 'June1232011'. I know where the files are located (path) .Since there are too many files exist in the directory, i want to find out the files that uses this password. It would be a... (10 Replies)
Discussion started by: Maddy123
10 Replies

8. Shell Programming and Scripting

loop picks up password for 2 to avoid that ?

hello all, i am trying to find a better to do what i am doing right now... i have a file called sidlist...which has my database_name and password to the respective database so something like below.. file is called sidlist and entry is below... test, abc123 kes12, abcd12 pss, abcd1234... (5 Replies)
Discussion started by: abdul.irfan2
5 Replies

9. Shell Programming and Scripting

Script to generate passwd comb.

Hi I created a gnupg password which I later forgot clumsy enough (after a holiday). I can always create a new one but unfortunately I have some files on the computer that I encrypted with it and would like to access it. I remember parts of the password and was wondering what's the the best way to... (0 Replies)
Discussion started by: zaonline
0 Replies

10. HP-UX

[solved] HP-UX /etc/passwd file

Hi. i have the accessibility to cat the /et/passwd file in this file we see the paassword field but the password is in encrypted form So, it can be possible to get the password encrypted string to convert it into human readable string via some md5 encryption code mechanism etc.. ... (6 Replies)
Discussion started by: Rajesh1091
6 Replies

11. Shell Programming and Scripting

Expect Redirecting o/p to an Variable

I have a password reset expect script which stores all the op to an file. I need to check the whether password is successfully changed by greping out the file and storing the o/p to a variable. But we try to print the variable , its shows only the command instead of its o/p. ... (2 Replies)
Discussion started by: sudharson
2 Replies

12. Shell Programming and Scripting

Script for database task.

Hi, I need help in creating script for "User password reset in database" by logging into database from linux server and resetting the user password. Could you please provide the script for this task? Steps are given below. 1. Login into database from server sqlplus... (5 Replies)
Discussion started by: Maddy123
5 Replies

Featured Tech Videos