LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-22-2024, 05:49 PM   #16
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Original Poster
Rep: Reputation: 149Reputation: 149

Quote:
Originally Posted by henca View Post
Code:
ls -ald /
ls -ald /var
ls -ald /var/lib
ls -ald /var/lib/mlocate
ls -ald /var/lib/mlocate/mlocate.db
df -h /var/lib/mlocate
cat /proc/mounts
Code:
drwxr-xr-x 42 root root 20480 Jan 22 10:17 //
drwxr-xr-x 24 root root 4096 Jan 22 10:17 /var/
drwxr-xr-x 60 root root 4096 Jan 22 10:20 /var/lib/
drwxr-x--- 2 root slocate 4096 Jan 22 10:15 /var/lib/mlocate/
-rw-r----- 1 root slocate 175083095 Jan 22 10:15 /var/lib/mlocate/mlocate.db
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       177G  142G   27G  85% /
/dev/root / ext4 rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=31319108k,nr_inodes=7829777,mode=755,inode64 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=32768k,mode=755,inode64 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,inode64 0 0
cgroup_root /sys/fs/cgroup tmpfs rw,relatime,size=8192k,mode=755,inode64 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
cgroup /sys/fs/cgroup/elogind cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib64/elogind/elogind-cgroups-agent,name=elogind 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1971,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=42051 0 0
-hosts /net autofs rw,relatime,fd=10,pgrp=1971,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=28731 0 0
/etc/auto.dh /mnt/nfs autofs rw,relatime,fd=13,pgrp=1971,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=44138 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
home /home zfs rw,noatime,xattr,noacl,casesensitive 0 0
/dev/loop0 /scd iso9660 ro,nosuid,nodev,noexec,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8 0 0
gvfsd-fuse /home/d/.gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
portal /home/d/.cache/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
Ferdium /tmp/.mount_Ferdiur9mwuv fuse.Ferdium ro,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
 
Old 01-23-2024, 12:49 AM   #17
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,004

Rep: Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675
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?

regards Henrik
 
Old 01-23-2024, 01:13 AM   #18
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by henca View Post
[...]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.
 
Old 01-23-2024, 01:51 AM   #19
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
All of my issues with this have be resolved. I believe was the re-installation of glibc-2.38_multilib-x86_64-3alien resolved this use:
Code:
/usr/bin/mandb: iconv_open ("UTF-8//IGNORE", "ISO-8859-1"): Invalid argument
Have not seen it since.

This all started with this:
Code:
Sat Jan 13 20:31:09 UTC 2024
a/dcron-4.5-x86_64-15.txz: Rebuilt.
       run-parts: don't redirect stderr to stdout. Thanks to Thom1b.
This a when I started seeing these reports.
Code:
cron for user root /usr/bin/run-parts /etc/cron.daily 1> /dev/null
 
Old 01-23-2024, 01:23 PM   #20
rwm_lq
LQ Newbie
 
Registered: Aug 2022
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
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)

error: mysql:21 duplicate log entry for /var/lib/mysql/mysqld.log
Two Fixes:
First Thread https://www.linuxquestions.org/quest...6/#post6477399 as posted earlier
Second: Some old mysql in /etc/logrotate.d/mysql

Last edited by rwm_lq; 01-23-2024 at 01:54 PM. Reason: Find Reference
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripts in cron.daily are not running daily abefroman Linux - Server 1 12-23-2014 12:11 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
/etc/cron.d and /etc/cron.daily bytez Linux - General 2 03-06-2007 03:21 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 01:50 PM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration