Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mkpasswd(8) [ultrix man page]

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

Name
       mkpasswd - generate hashed password table

Syntax
       /etc/mkpasswd [-uv] passwdfile

Description
       The command is used to generate the hashed password database used by the library routines and

       If  the -u option is present the hashed files will not be built unless they already exist.  In any case, the hashed files will not be built
       if the time of last modification of the passwdfile is less recent than that of an existing hashed files.

       If the -v option is supplied, each entry will be listed as it is added.

       The file passwdfile is usually and must be in the format of The command will generate  database	files  named  passwdfile.pag  and  passwd-
       file.dir.   The command will exit with a non-zero exit code if any errors are detected.	Otherwise it will print the number of entries pro-
       cessed and the length of the longest entry.

       The presence of the hashed files is optional. They are not required for correct operation of or but will improve their performance on  sys-
       tems with moderate to large sized files.

Diagnostics
       The data base is already up to date.
       If the specified file has been modified less recently than the hashed files.

       Database not created.
       When used with the -u option and the database does not already exist.

Files
       passwdfile.dir Database filename

       passwdfile.pag Database filename

See Also
       getpwent(3), passwd(5), vipw(8)

																       mkpasswd(8)

Check Out this Related Man Page

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

NAME
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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help on MOVE command

Hi all, I'd like to use advanced features of mv command. Is it possible to move all files except one based on his extension ? I'm searching something like "mv *.* -*.xxx /dest_dir" ... Thanks all Michel. (2 Replies)
Discussion started by: michelr
2 Replies

2. UNIX for Advanced & Expert Users

Compiled Files

I am using SCO Unix with a Progress Database. There are files that 'pop up' and cause problems. I need to be able to read these files but they are compiled and I don't know how to un-compile them. Is there some kind of software / shareware that I can download to view these files? Is... (2 Replies)
Discussion started by: tripp4337
2 Replies

3. UNIX for Dummies Questions & Answers

wc vs ls

I had received a complaint recently that 'wc' is not returning a correct byte count for large files (in 10s of GB). Does 'wc' have any such limitation? If yes, would 'ls' be a better option to fetch file size. I am planning on replacing wc with ls for calculating file sizes in the existing code.... (13 Replies)
Discussion started by: Sreenivasa
13 Replies

4. AIX

Database version

How possible to know the version of database is there command to close this issue? (1 Reply)
Discussion started by: magasem
1 Replies

5. Shell Programming and Scripting

How to handle the Multiple Rows in the Database

Hi All, I have problem with database validations, actually my requirement is, my code will generate some seqno;s, which i have to check in database, whether the generated seqno;s are present in database or not, if the generated seqno;s are present in the database means, i need to generate... (2 Replies)
Discussion started by: hsekol
2 Replies

6. UNIX for Dummies Questions & Answers

Problem with mv

Dears, I have noticed recently that whenever I try to use the unix command mv to move a large number of files from one directory to another. The files disappear after a while. My question is does mv have a certain limitation if the number of files exceeds a certain number, and is there a way to... (3 Replies)
Discussion started by: JimJim
3 Replies

7. 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

8. UNIX for Advanced & Expert Users

Back up of recent modified files

Hi, I want to identify the files that are recently modified or with in a specified period (15 Days) in UNIX box. After identifying the files should be transferred to windows machine through FTP. The files should be overwritten in windows if it is already available. Please help... (1 Reply)
Discussion started by: lathish
1 Replies

9. 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

10. 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

11. Shell Programming and Scripting

Search for a recently updated file

Hi, I am looking for a command to search for a specific file which was recently modified in the current directory leaving some unwanted files to be listed. For example, when I try ls - lrt it shows the following output. I want to ommit the files with the name 'resend' and... (3 Replies)
Discussion started by: svajhala
3 Replies

12. Shell Programming and Scripting

Database is down

How to find out whether your database is down or not? Could anyone provide me the command please.. Thanks C (6 Replies)
Discussion started by: bobby1015
6 Replies

13. Shell Programming and Scripting

How to use perl to generate files with correct filenames?

Hi, I'm trying to use perl to generate files based on sections in a large textfile. This will create one file per section that starts with " ABC_": perl -n -e '/^ABC_/ and open FH, ">output_".$n++; print FH;' largefile.txt However, the output filenames will be on the form output_nn. This... (2 Replies)
Discussion started by: Yagi Uda
2 Replies

14. UNIX for Advanced & Expert Users

How to check or remove IP address from a hashed known_hosts file?which

Hi, In my server, the hostname and IP addresses are added to the known_hosts which then be hashed by ssh-keygen -H -f. Is it possible to check if an IP address has already been added to the hashed known_hosts to avoid duplications (I think there will be problems if there are duplicated IP... (3 Replies)
Discussion started by: hce
3 Replies

15. Shell Programming and Scripting

Read Lines from One file.. and create another.. and

Hello Members, I have one file which contains million of supplier code. I need to load these codes into database 1000 at a time. Database procedure reads from an external table which is based on the unix files. All I want to do is to read from the bigger file e.g. MAIN_FILE.txt and create... (1 Reply)
Discussion started by: chetanojha
1 Replies