updatedb – update a database for mlocate
creates or updates a database used by
If the database already exists,
its data is reused
to avoid rereading directories that have not changed.
is usually run daily by
to update the default database.
returns with exit status 0 on success, 1 on error.
The PRUNE_BIND_MOUNTS, PRUNEFS,
variables, which are modified by some of the options, are documented in detail
outputs entries as absolute path names which don’t contain symbolic links,
regardless of the form of PATH.
instead of using the default database.
to FLAG, overriding the configuration file.
or if the database file is readable by "others"
or it is not owned by slocate,
outputs the database entries even if the user running
could not have read the directory necessary to find out the file described
by the database entry.
checks the permissions of parent directories of each entry
before reporting it to the invoking user.
To make the file existence truly hidden from other users, the database
group is set to
and the database permissions prohibit reading the database by users using
other means than
which is set-gid slocate.
Note that the visibility flag is checked only if the database is owned by
and it is not readable by "others".
on standard output and exit successfully.
To create a private mlocate database as an user other than root,
Note that all users that can read
can get the complete list of files in the subtree of source_directory.
Databases built with
allow users to find names of files and directories of other users,
which they would not otherwise be able to do.
utility was designed to be compatible to
and attempts to be compatible to
This is not the case for updatedb.
Miloslav Trmac <[email protected]>