I understand what you are saying but how will adding user bacula to group nobody grant nobody access to a location which is 770 with ownership user:bacula? Also using a software related user instead of system one has the risk of making one package depend on another. E.g. if tomorrow one decides to uninstall Bacula, again some modifications will need to be made.
I am rather thinking: Is there a way to set ACL for the ntfs mount point and simply make it readable by nobody? I couldn’t find much info about ntfs ACL mount, only that it is supported. I actually don’t know what the fstab entry should look like. Currently it says:
Also what about the fact that the man page is wrong? Should the cron script be modified somehow? Should that be reported as a bug to opensuse bugzilla?
Another (and I think better) possibility should be to set the preferred time in /etc/sysconfig/cron:
## Type: string
## Default: ""
#
# At which time cron.daily should start. Default is 15 minutes after booting
# the system. Example setting would be "14:00".
# Due to the fact that cron script runs only every 15 minutes,
# it will only run on xx:00, xx:15, xx:30, xx:45, not at the accurate time
# you set.
DAILY_TIME=""
This is read and respected by /usr/lib/cron/run-crons (unless there’s a bug or this feature has been removed).
But that’s mentioned in the link you posted anyway.
I have recently reinstalled Leap and now the indexing seems to run every day.
However the issue with permissions which I explained in the bug report from above remains and I have no idea how to approach this problem.
Although I haven’t experimented, it looks like you should inspect the following file in a text editor which specifies which files, directories and directory tress should be included or excluded. The last few code blocks also specify that by default updating is done using the root account, but you can specify something else instead
/etc/cron.daily/mlocate.cron
In other words, it seems that the above file is where you would probably want to make any modifications relating to files and directories and how to access.
The above few preceding posts describe how to set the specific time the job is run daily by modifying
Running updatedb as nobody will not index files which are not accessible by nobody
Running updatedb as root with “-l 1” set manually in /etc/cron.daily/mlocate.cron results in a database not readable by “others” and makes the whole thing useless for normal users. Also as discussed perhaps it is not a good idea to add a regular user to group nobody just to be able to use locate properly.
Running updatedb as a particular userX is similar to 1. and hence useless in a multiuser system.