[17:25:03]
<Anmol> Hi
[18:39:13]
<Anmol> I have a file name on /etc/cron.daily/0, which is not getting deleted. Every hour I get an email from root email address with an error:
```
/etc/cron.hourly/0:
run-parts: failed to exec /etc/cron.hourly/0: Exec format error
run-parts: /etc/cron.hourly/0 exited with return code 1
```
[18:39:57]
<Anmol> Can someone tell me what is this file and what is it's use?
[19:29:50]
<selfhoster1312> Anmol, what's in the file?
cat /etc/cron.hourly/0 ?
[19:31:54]
<Anmol> > <selfhoster1312> Anmol, what's in the file?
> cat /etc/cron.hourly/0 ?
Nothing
[19:32:47]
<Anmol> And it do not get deleted.
```
rm /etc/cron.hourly/0
rm: cannot remove '/etc/cron.hourly/0': Operation not permitted
```
[19:33:50]
<selfhoster1312> when you do it as root???
[19:33:57]
<selfhoster1312> like sudo rm ?
[19:34:10]
<Anmol> I am on root.
[19:34:22]
<selfhoster1312> ls -alh /etc/cron.hourly ?
[19:35:04]
<Anmol> > <selfhoster1312> ls -alh /etc/cron.hourly ?
```
drwxr-xr-x 2 root root 4.0K Aug 17 07:55 .
drwxr-xr-x 172 root root 12K Aug 17 22:22 ..
-rwsrwxrwt 1 root root 0 Aug 17 07:55 0
-rwxr-xr-x 1 root root 191 Aug 11 06:40 fake-hwclock
```
[19:35:40]
<Anmol> Do you have this file selfhoster1312 ?
[19:35:44]
<selfhoster1312> no
[19:36:57]
<selfhoster1312> so it has sticky bit but root should be able to removEe? maybe with rm -f ?
[19:36:57]
<Anmol> Do you have any suggestion to move it or remove it? I have already tried lot of things.
[19:37:52]
<Anmol> ```
rm -f /etc/cron.hourly/0
rm: cannot remove '/etc/cron.hourly/0': Operation not permitted
```
[19:38:06]
<selfhoster1312> are you sure you're root?
[19:38:08]
<selfhoster1312> run `id` command
[19:39:07]
<Anmol> id
uid=0(root) gid=0(root) groups=0(root)
[19:39:55]
<selfhoster1312> strange?!
[19:41:56]
<Anmol> So, I have tried lot of things. Even booted from live usb and done fsck on the disk. Move the entire folder and the created new one, it returned. Tried to check what makes it return by auditing it. Nothing found.
[19:43:15]
<Anmol> My don't want to nuke the server. So just trying things. But in the end I would be doing it.
[19:45:01]
<selfhoster1312> Anmol, so you removed it from live usb and it came back?
[19:45:15]
<Anmol> yes
[19:45:49]
<selfhoster1312> what is your server running? apart from yunohost AND yunohost apps
[19:47:00]
<selfhoster1312> (and what file systme is this?)
[19:47:35]
<Anmol> To be honest it only has Yunohost and its apps. I have docker but it is not running.
[19:48:03]
<Anmol> > <selfhoster1312> (and what file systme is this?)
ext4
[19:48:49]
<selfhoster1312> what yunohost apps?
[19:50:46]
<Anmol> nextcloud, freshrss, matrix, streams,netdata,roundcube,phpmyadmin,wallabag, bitwarden and paperless
[19:51:21]
<Anmol> and couchdb
[19:54:53]
<selfhoster1312> that's a lot of stuff that could be doing that :)
[19:56:32]
<Anmol> It has been these apps from long time. There was no problem whats so ever. I hoped to servers many times with the apps.