Wrong File owner, something very strange happened

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Wrong File owner, something very strange happened

      After something went wrong with a Docker Module installation, i couldn't access the OMV WebIf anymore (Bad Gateway, Nginx Error Message). I've deleted the Docker Image trough Console access. Now i can access the WebIf again, but nothing else is working as expected (Samba Share, Plex Server,...).

      After looking in Syslog i found the a lot of Error Messages in the Syslog.
      Display Spoiler

      Source Code

      1. Aug 12 00:05:10 omv systemd[1]: Started watchdog daemon.
      2. Aug 12 00:05:10 omv systemd[1]: Reached target Graphical Interface.
      3. Aug 12 00:05:10 omv systemd[1]: Starting Update UTMP about System Runlevel Changes...
      4. Aug 12 00:05:10 omv systemd[1]: Started Update UTMP about System Runlevel Changes.
      5. Aug 12 00:05:11 omv systemd[1]: Started Beep after system start.
      6. Aug 12 00:05:11 omv systemd[1]: Startup finished in 4.630s (kernel) + 6.797s (userspace) = 11.428s.
      7. Aug 12 00:05:17 omv systemd[1]: Time has been changed
      8. Aug 12 00:05:17 omv systemd[1]: apt-daily.timer: Adding 11h 3min 23.844183s random time.
      9. Aug 12 00:05:17 omv systemd[1]: apt-daily-upgrade.timer: Adding 43min 57.523397s random time.
      10. Aug 12 00:05:17 omv systemd[1]: certbot.timer: Adding 6h 39min 4.028341s random time.
      11. Aug 12 00:05:17 omv systemd[1]: anacron.timer: Adding 1min 55.970903s random time.
      12. Aug 12 00:06:02 omv cron[694]: (*system*) WRONG FILE OWNER (/etc/crontab)
      13. Aug 12 00:06:02 omv cron[694]: (*system*cron-apt) WRONG FILE OWNER (/etc/cron.d/cron-apt)
      14. Aug 12 00:06:02 omv cron[694]: (*system*openmediavault-userdefined) WRONG FILE OWNER (/etc/cron.d/openmediavault-userdefined)
      15. Aug 12 00:06:02 omv cron[694]: (*system*openmediavault-powermngmt) WRONG FILE OWNER (/etc/cron.d/openmediavault-powermngmt)
      16. Aug 12 00:06:02 omv cron[694]: (*system*anacron) WRONG FILE OWNER (/etc/cron.d/anacron)
      17. Aug 12 00:06:02 omv cron[694]: (*system*openmediavault-letsencrypt) WRONG FILE OWNER (/etc/cron.d/openmediavault-letsencrypt)
      18. Aug 12 00:06:02 omv cron[694]: (*system*mdadm) WRONG FILE OWNER (/etc/cron.d/mdadm)
      19. Aug 12 00:06:02 omv cron[694]: (*system*certbot) WRONG FILE OWNER (/etc/cron.d/certbot)
      20. Aug 12 00:06:02 omv cron[694]: (*system*php) WRONG FILE OWNER (/etc/cron.d/php)
      21. Aug 12 00:06:02 omv cron[694]: (*system*openmediavault-mkrrdgraph) WRONG FILE OWNER (/etc/cron.d/openmediavault-mkrrdgraph)
      22. Aug 12 00:06:02 omv cron[694]: (*system*sysstat) WRONG FILE OWNER (/etc/cron.d/sysstat)
      23. Aug 12 00:07:01 omv cron[694]: (*system*) WRONG FILE OWNER (/etc/crontab)
      24. Aug 12 00:07:01 omv cron[694]: (*system*cron-apt) WRONG FILE OWNER (/etc/cron.d/cron-apt)
      25. Aug 12 00:07:01 omv cron[694]: (*system*openmediavault-userdefined) WRONG FILE OWNER (/etc/cron.d/openmediavault-userdefined)
      26. Aug 12 00:07:01 omv cron[694]: (*system*openmediavault-powermngmt) WRONG FILE OWNER (/etc/cron.d/openmediavault-powermngmt)
      27. Aug 12 00:07:01 omv cron[694]: (*system*anacron) WRONG FILE OWNER (/etc/cron.d/anacron)
      28. Aug 12 00:07:01 omv cron[694]: (*system*openmediavault-letsencrypt) WRONG FILE OWNER (/etc/cron.d/openmediavault-letsencrypt)
      29. Aug 12 00:07:01 omv cron[694]: (*system*mdadm) WRONG FILE OWNER (/etc/cron.d/mdadm)
      30. Aug 12 00:07:01 omv cron[694]: (*system*certbot) WRONG FILE OWNER (/etc/cron.d/certbot)
      31. Aug 12 00:07:01 omv cron[694]: (*system*php) WRONG FILE OWNER (/etc/cron.d/php)
      32. Aug 12 00:07:01 omv cron[694]: (*system*openmediavault-mkrrdgraph) WRONG FILE OWNER (/etc/cron.d/openmediavault-mkrrdgraph)
      33. Aug 12 00:07:01 omv cron[694]: (*system*sysstat) WRONG FILE OWNER (/etc/cron.d/sysstat)
      34. Aug 12 00:08:01 omv cron[694]: (*system*) WRONG FILE OWNER (/etc/crontab)
      35. Aug 12 00:08:01 omv cron[694]: (*system*cron-apt) WRONG FILE OWNER (/etc/cron.d/cron-apt)
      36. Aug 12 00:08:01 omv cron[694]: (*system*openmediavault-userdefined) WRONG FILE OWNER (/etc/cron.d/openmediavault-userdefined)
      37. Aug 12 00:08:01 omv cron[694]: (*system*openmediavault-powermngmt) WRONG FILE OWNER (/etc/cron.d/openmediavault-powermngmt)
      38. Aug 12 00:08:01 omv cron[694]: (*system*anacron) WRONG FILE OWNER (/etc/cron.d/anacron)
      39. Aug 12 00:08:01 omv cron[694]: (*system*openmediavault-letsencrypt) WRONG FILE OWNER (/etc/cron.d/openmediavault-letsencrypt)
      40. Aug 12 00:08:01 omv cron[694]: (*system*mdadm) WRONG FILE OWNER (/etc/cron.d/mdadm)
      41. Aug 12 00:08:01 omv cron[694]: (*system*certbot) WRONG FILE OWNER (/etc/cron.d/certbot)
      42. Aug 12 00:08:01 omv cron[694]: (*system*php) WRONG FILE OWNER (/etc/cron.d/php)
      43. Aug 12 00:08:01 omv cron[694]: (*system*openmediavault-mkrrdgraph) WRONG FILE OWNER (/etc/cron.d/openmediavault-mkrrdgraph)
      44. Aug 12 00:08:01 omv cron[694]: (*system*sysstat) WRONG FILE OWNER (/etc/cron.d/sysstat)
      45. Aug 12 00:09:00 omv systemd[1]: Starting Clean php session files...
      46. Aug 12 00:09:00 omv systemd[1]: Started Clean php session files.
      47. Aug 12 00:09:01 omv cron[694]: (*system*) WRONG FILE OWNER (/etc/crontab)
      48. Aug 12 00:09:01 omv cron[694]: (*system*cron-apt) WRONG FILE OWNER (/etc/cron.d/cron-apt)
      49. Aug 12 00:09:01 omv cron[694]: (*system*openmediavault-userdefined) WRONG FILE OWNER (/etc/cron.d/openmediavault-userdefined)
      50. Aug 12 00:09:01 omv cron[694]: (*system*openmediavault-powermngmt) WRONG FILE OWNER (/etc/cron.d/openmediavault-powermngmt)
      51. Aug 12 00:09:01 omv cron[694]: (*system*anacron) WRONG FILE OWNER (/etc/cron.d/anacron)
      52. Aug 12 00:09:01 omv cron[694]: (*system*openmediavault-letsencrypt) WRONG FILE OWNER (/etc/cron.d/openmediavault-letsencrypt)
      53. Aug 12 00:09:01 omv cron[694]: (*system*mdadm) WRONG FILE OWNER (/etc/cron.d/mdadm)
      54. Aug 12 00:09:01 omv cron[694]: (*system*certbot) WRONG FILE OWNER (/etc/cron.d/certbot)
      55. Aug 12 00:09:01 omv cron[694]: (*system*php) WRONG FILE OWNER (/etc/cron.d/php)
      56. Aug 12 00:09:01 omv cron[694]: (*system*openmediavault-mkrrdgraph) WRONG FILE OWNER (/etc/cron.d/openmediavault-mkrrdgraph)
      57. Aug 12 00:09:01 omv cron[694]: (*system*sysstat) WRONG FILE OWNER (/etc/cron.d/sysstat)
      Display All



      If i check the owner of this files all is set to 911
      Display Spoiler


      Source Code

      1. 209 4 drwxr-xr-x 2 911 911 4096 Aug 2 21:52 .
      2. 12 4 drwxrwxr-x 103 911 911 4096 Aug 2 21:55 ..
      3. 211 4 -rw-r--r-- 1 911 911 285 Mai 29 2017 anacron
      4. 360 4 -rw-r--r-- 1 911 911 485 Mär 24 00:01 certbot
      5. 212 4 -rw-r--r-- 1 911 911 355 Nov 28 2016 cron-apt
      6. 213 4 -rw-r--r-- 1 911 911 589 Jul 26 2016 mdadm
      7. 52678 4 -rw-r--r-- 1 911 911 140 Jun 15 15:01 openmediavault-letsencrypt
      8. 214 4 -rw-r--r-- 1 911 911 126 Aug 2 21:52 openmediavault-mkrrdgraph
      9. 1824 4 -rw-r--r-- 1 911 911 114 Jun 18 13:42 openmediavault-powermngmt
      10. 1825 4 -rw-r--r-- 1 911 911 331 Jun 18 13:42 openmediavault-userdefined
      11. 215 4 -rw-r--r-- 1 911 911 712 Jan 1 2017 php
      12. 210 4 -rw-r--r-- 1 911 911 102 Okt 7 2017 .placeholder
      13. 1900 4 -rw-r--r-- 1 911 911 396 Mai 25 2017 sysstat
      Display All


      Nearly all Files and Folder on my Server are set to 911 (user andf group).

      Display Spoiler


      Source Code

      1. 2 4 drwxr-xr-x 26 911 911 4096 Aug 11 23:43 .
      2. 2 4 drwxr-xr-x 26 911 911 4096 Aug 11 23:43 ..
      3. 20196 4 drwxr-xr-x 2 911 911 4096 Aug 2 21:52 bin
      4. 51935 4 drwxr-xr-x 3 911 911 4096 Aug 4 22:22 boot
      5. 5865 112 -rw-r--r-- 1 911 911 113367 Aug 11 23:43 cacerts
      6. 655367 4 drwxr-xr-x 2 911 911 4096 Aug 11 23:43 database
      7. 1025 0 drwxr-xr-x 19 root root 3300 Aug 12 00:05 dev
      8. 12 4 drwxrwxr-x 103 911 911 4096 Aug 2 21:55 etc
      9. 1982 4 drwxr-xr-x 2 911 911 4096 Jun 15 08:20 export
      10. 131073 4 drwxr-xr-x 3 911 911 4096 Jun 18 12:44 home
      11. 16 0 lrwxrwxrwx 1 911 911 36 Aug 4 22:21 initrd.img -> boot/initrd.img-4.17.0-0.bpo.1-amd64
      12. 15 0 lrwxrwxrwx 1 911 911 36 Aug 4 22:21 initrd.img.old -> boot/initrd.img-4.16.0-0.bpo.2-amd64
      13. 9734 4 drwxr-xr-x 15 911 911 4096 Jun 15 08:20 lib
      14. 1983 4 drwxr-xr-x 2 911 911 4096 Jun 15 08:20 lib64
      15. 655362 4 drwxr-xr-x 2 911 911 4096 Aug 11 23:42 logs
      Display All




      Is there any way i can restore the correct ownerships?

      The post was edited 1 time, last by vcdwelt ().

    • vcdwelt wrote:

      Is there any way i can restore the correct ownerships?
      Looks like you used /etc/cron.d as a persistent storage directory on one of your containers? chown root:root /etc/cron.d/* should fix the permissions.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • vcdwelt wrote:

      But nearly all other directorys also owned from 911 uid and gid. As you can see in the last spoiler.
      Not good. I didn't notice that in the last spoiler.

      vcdwelt wrote:

      Will correcting the cron.d directory also affect all the other directorys and files?
      Nope. I hope you have a backup or you will be installing fresh. Before you do either, can you post the output of: ps aux
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • The good news is that you don't seem to have any processes running that would indicate a hack. The bad news is that fixing the permissions of every file on the system would take much longer than a new install.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • vcdwelt wrote:


      /---/ No Backup available :whistling: ;(

      I don't know what you're booting with but, if it's flash media, operating system backup up (or cloning) is easy.

      When something odd like this happens, it's nice to be able to "punt". (I'm dealing with something weird as well.)
      Good backup takes the "drama" out of computing
      ____________________________________
      Primary: OMV 3.0.99, ThinkServer TS140, 12GB ECC, 32GB USB boot, 4TB+4TB zmirror, 3TB client backup.
      Backup: OMV 4.1.9, Acer RC-111, 4GB, 32GB USB boot, 3TB+3TB zmirror, 4TB Rsync'ed disk
      2nd Data Backup: OMV 3.0.99, R-PI 2B, 16GB boot, 4TB WD USB MyPassport - direct connect (no hub)
    • Yes i know a backup would be nice :/ Mostly i did one. But i have installed the OMV Server not long ago and a Backup was a Task i had on my todo List :thumbsup:

      I'm booting from a SSD. On this SSD is only the System installed. So really a easy thing to have it on a save place.

      Already saved the interesting configurations and beginning a new installation.
      Now i see it as a Linux training. Every new installation is a little bit more smooth :saint:

      And a Backup will be the first thing after i finished the initital Configuration!
    • If you'd consider booting with a USB stick (or use an SSD to USB adapter) - take a look at this guide starting at page 57. Since USB sockets are on the outside of a PC case, cloning flash drives is really easy. With a known working clone handy, it's easy to back out of a disaster. (Like this one.)
      Good backup takes the "drama" out of computing
      ____________________________________
      Primary: OMV 3.0.99, ThinkServer TS140, 12GB ECC, 32GB USB boot, 4TB+4TB zmirror, 3TB client backup.
      Backup: OMV 4.1.9, Acer RC-111, 4GB, 32GB USB boot, 3TB+3TB zmirror, 4TB Rsync'ed disk
      2nd Data Backup: OMV 3.0.99, R-PI 2B, 16GB boot, 4TB WD USB MyPassport - direct connect (no hub)
    • I'm using a HP Microserver as OMV Server.
      Here is a special thing on HDD Config.
      Bay 1-4 is used for HDD
      Bay 5 the ODD Port i used for my System SSD
      i need to use a microsd card for chainbooting, because otherwise the system could only boot from bay 1-4. With this trick i can boot from the odd Port. So far so good :) OMV is newly installed an working.

      Which is the best way to backup my OMV Installation? There is no need to backup the other HDD's. Only a System Backup for cases like the one i had.
    • vcdwelt wrote:

      Which is the best way to backup my OMV Installation?
      Install the backup plugin and choose the fsarchiver option. You can restore using this post - How to restore from an omv-backup?
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Backup is done now :thumbsup: and your small tutorial for Recovery is saved in my Bookmarks :whistling:

      Another Question, is it possible to include in this Backup, also another Partition of the Server?
      I have createt another Partition on my SSD, where the Configs of Plugins and Dockers are saved. Would be nice if i could include this partition also in the Backup 8o
    • vcdwelt wrote:

      is it possible to include in this Backup, also another Partition of the Server?
      Not without a change to the plugin. You could add a scheduled job to do that though.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • This would be a nightmare to write a tutorial for someone who is a beginner. I will look at the plugin to see if I can backup all partitions on the OS disk. Just remember that having additional partitions on the OS disk technically isn't support.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Didn't know that having another Partition isn't supported. Did find a tutorial how to do it and it sounds good to me. Had it already on OMV3 and did the same under OMV4.
      Will remeber it on next installation and don't create another Partiton :!: Maybe i will get it done to move all Data from the extra Partition to the System partiton and delete the extra one (or at least leave it empty)...