SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Your ownerships and permissions looks fine and your root partition is mounted rw. I assume that you ran the above commands as root as an ordinary user probably is not a member of the slocate group?
So, what if you as root try to run
Code:
/etc/cron.daily/mlocate
Would that also give "/usr/bin/updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'"?
On my Slackware 15.0 system running /etc/cron.daily/mlocate as root works fine, but running it as a normal user gives, as expected:
Code:
/usr/bin/updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
I suspect that you somehow has gotten the crontab of root into the crontab of an ordinary user. What is the output of:
Code:
ls -al /var/spool/cron/crontabs/
Another possible cause could be if you somehow gotten some script in /etc/cron.daily which does su to an ordinary user before running other scripts.
What if you as root try to run:
Code:
/usr/bin/run-parts /etc/cron.daily
Does that work worse for mlocate than only calling the mlocate script as root?
[...]I suspect that you somehow has gotten the crontab of root into the crontab of an ordinary user.[...]
I didn't (because a lot more stuff would be going wrong) but apparently I copied default crontab into a user's one to see formatting for hourly, daily, weekly, monthly, and one wasn't commented out.
same Problems with "/usr/bin/mandb: iconv_open ("UTF-8//IGNORE", "ISO-8859-1"): Invalid argument"
Seems to be fixable by Reinstallation of glibc glibc-i18n glibc-profile glibc-zoneinfo
(no multilib installed)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.