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 Alsogetpwent(3), passwd(5), vipw(8)mkpasswd(8)
Check Out this Related Man Page
MKHOSTS(8) System Manager's Manual MKHOSTS(8)NAME
mkhosts - generate hashed host table
SYNOPSIS
/usr/sbin/mkhosts [ -v ] hostfile
DESCRIPTION
Mkhosts is used to generated the hashed host database used by one version of the library routines gethostbyaddr() and gethostbyname(). It
is not used if host name translation is performed by named(8). If the -v option is supplied, each host will be listed as it is added. The
file hostfile is usually /etc/hosts, and in any case must be in the format of /etc/hosts (see hosts(5)). Mkhosts will generate database
files named hostfile.pag and hostfile.dir. The new database is build in a set of temporary files and only replaces the real database if
the new one is built without errors. Mkhosts will exit with a non-zero exit code if any errors are detected.
FILES
hostfile.pag - real database filenames
hostfile.dir
hostfile.new.pag - temporary database filenames
hostfile.new.dir
SEE ALSO gethostbyname(3), gettable(8), hosts(5), htable(8), named(8)4.3 Berkeley Distribution May 23, 1986 MKHOSTS(8)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)