This manual page documents the GNU version of updatedb, which updates file name databases used by GNU locate. The new updatedb man page from Ubuntu 19.10 reads: UPDATEDB(1) General Commands Manual UPDATEDB(1) The accompanying locate(1) utility was designed to be compatible to slocate and attempts to be compatible to GNU locate where possible. See nf(5).ĭatabases built with -require-visibility no allow users to find names of files and directories of other users, which they would not otherwise be able to do. Note that all users that can read db_file can get the complete list of files in the subtree of source_directory.Ī configuration file. Updatedb -l 0 -o db_file -U source_directory To create a private mlocate database as an user other than root, run Write information about the version and license of locate on standard output and exit successfully. Output path names of files to standard output, as soon as they are found. Note that the visibility flag is checked only if the database is owned by mlocate and it is not readable by "others". To make the file existence truly hidden from other users, the database group is set to mlocate and the database permissions prohibit reading the database by users using other means than locate(1), which is set-gid mlocate. If FLAG is 1 or yes (the default), locate(1) checks the permissions of parent directories of each entry before reporting it to the invoking user. If FLAG is 0 or no, or if the database file is readable by "others" or it is not owned by mlocate, locate(1) outputs the database entries even if the user running locate(1) could not have read the directory necessary to find out the file described by the database entry. Set the ``require file visibility before reporting it'' flag in the generated database to FLAG. Set PRUNEPATHS to PATHS, overriding the configuration file. Set PRUNENAMES to NAMES, overriding the configuration file. Set PRUNEFS to FS, overriding the configuration file. Set PRUNE_BIND_MOUNTS to FLAG, overriding the configuration file. Write the database to FILE instead of using the default database. Write a summary of the available options to standard output and exit successfully. Write debugging information about pruning decisions to standard error output. Locate(1) outputs entries as absolute path names which don't contain symbolic links, regardless of the form of PATH. The whole file system is scanned by default. Store only results of scanning the file system subtree rooted at PATH to the generated database. The PRUNE_BIND_MOUNTS, PRUNEFS, PRUNENAMES and PRUNEPATHS variables, which are modified by some of the options, are documented in detail in nf(5).Īdd entries in white-space-separated list FS to PRUNEFS.Īdd entries in white-space-separated list NAMES to PRUNENAMES.Īdd entries in white-space-separated list PATHS to PRUNEPATHS. Updatedb returns with exit status 0 on success, 1 on error. Updatedb is usually run daily by cron(8) to update the default database. If the database already exists, its data is reused to avoid rereading directories that have not changed. Updatedb creates or updates a database used by locate(1). The new man page from the new system is not explanatory enough to identify what the new options should be.įor reference, the old command line is this (taken from which I am guessing is the old version because I cannot now find the man page for the old version from the man utility on 19.10): NAME This broke some scripts I had that used the old command-line options. The updatedb utility changed after upgrading from Ubuntu 19.04 to 19.10 (uhh why?).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |