Strange behaviour of locate command

JimDeadlock

Verified User
Joined
Mar 11, 2023
Messages
11
My user jim (only user on the server) cannot locate any file within its own filesystem, but it can locate other system files belonging to root and other users. sudo locate does find files belonging to jim, so they are indexed properly.

How can I allow the user jim to locate its own files?

/etc/updatedb.conf
Code:
PRUNE_BIND_MOUNTS = "yes"
PRUNEFS = "9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup cifs coda configfs cpuset debugfs devpts ecryptfs exofs fuse fuse.sshfs fusectl gfs gfs2 gpfs hugetlbfs inotifyfs iso9660 jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs securityfs selinuxfs sfs sockfs sysfs tmpfs ubifs udf usbfs ceph fuse.ceph"
PRUNENAMES = ".git .hg .svn .bzr .arch-ids {arch} CVS"
PRUNEPATHS = "/afs /media /mnt /net /sfs /tmp /udev /var/cache/ccache /var/lib/yum/yumdb /var/lib/dnf/yumdb /var/spool/cups /var/spool/squid /var/tmp /var/lib/ceph"

Demonstration of issue
Code:
# ll zzz-test
-rw-r--r-- 1 jim jim 0 May 13 20:56 zzz-test
# sudo updatedb
# locate zzz-test
# sudo locate zzz-test
/home/jim/zzz-test
# locate zdiff
/usr/bin/bzdiff
/usr/bin/xzdiff
/usr/bin/zdiff
/usr/share/man/man1/bzdiff.1.gz
/usr/share/man/man1/xzdiff.1.gz
/usr/share/man/man1/zdiff.1.gz
 
Back
Top