File "0" in /

Hi all,

the title might be a bit misleading. I have seen that there is a file with the file name “0” (without quotes) and a file size of 0kb in /. I have this file on all my Tumbleweed installations.

I did a new installation of TW as a Virtual Machine using this snapshot: openSUSE-Tumbleweed-DVD-x86_64-Snapshot20220317-Media.iso
The file is already existent after the installation. So, I assume it is “normal”.

Anyone knows, what’s the purpose of this file?

Most likely some programming error.

I had not noticed. But, now that you mentioned it, I checked. And yes, the file is there.

Most likely it was caused by a bug in a script that was run during updates.

You could post

ls -l /0

Then everybody can see the details.

-rw-r--r-- 1 root root 0 Mar  4 10:06 /0

This inexplicable zero has been bugging me too.

I concur with others. Result of some scripting error. Not really a problem, but annoying. IMHO you can remove it without getting into problems.

The real question then is: where does it come from. I guess that Mar 4 10:06 is during the system installation.

Reported as https://bugzilla.opensuse.org/show_bug.cgi?id=1197317


$ stat /0
  File: /0
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 0,36    Inode: 5314302     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-02-25 00:37:55.998566041 -0300
Modify: 2022-02-25 00:37:55.998566041 -0300
Change: 2022-02-25 00:37:55.998566041 -0300
 Birth: 2022-02-25 00:37:55.998566041 -0300


$ rpm -q --scripts $(sudo grep '2022-02-25 00:37:5' /var/log/zypp/history | awk -F'|' '{print $3}') | grep -w '0'
if  "$1" > 0 ] &&  -f /usr/sbin/update-alternatives ] ; then


$ sudo xzcat /var/log/zypper.log-20220302.xz | grep '00:37:5' | grep Installing
2022-02-25 00:37:55 <1> localhost(23561) [Progress++] progressdata.cc(report):70 {#66|Installing: mailx-12.5-33.1.x86_64} START

Yes, it was for me.

Thank you for troubleshooting and reporting the bug.

Nope, definitely not the installation, but some recent update. Earliest I found was from 23-FEB-2022, during the minute the file was created, zypper dup installed the following programs:

# 2022-02-23 21:51:00 usb_modeswitch-2.6.1-2.2.x86_64.rpm installed ok
# Additional rpm output:
# Failed to try-restart usb_modeswitch@.service: Unit name usb_modeswitch@.service is missing the instance name.
# See system logs and 'systemctl status usb_modeswitch@.service' for details.
# 
2022-02-23 21:51:00|install|usb_modeswitch|2.6.1-2.2|x86_64||openSUSE-20220205-0|7840fc0bdd883ab97c4fefff9b376ce59ab0158b57cd36b2577c98b060a32d3e|
2022-02-23 21:51:00|install|ibmtss-base|1.6.0-3.3|noarch||openSUSE-20220205-0|0686df98b7e18dd548fce47227a419a20fca2a02ef4fb7d6f661b24f791cb225|
2022-02-23 21:51:03|install|iio-sensor-proxy|3.3-1.3|x86_64||openSUSE-20220205-0|dcf895105421cb34de498bd2b2a90a04e73a459524d59735c444762a9457feed|
2022-02-23 21:51:05|install|geoclue2|2.5.7-2.4|x86_64||openSUSE-20220205-0|442a80b1ccb019e06d29534371903486344220d2ec5c75596b7bd94455832c53|
2022-02-23 21:51:05|install|libusbmuxd-2_0-6|2.0.2-1.8|x86_64||openSUSE-20220205-0|c048ec21e948d96ae16a753ee151b09964ed18abdb5efd82651a1aadc5535f1e|
2022-02-23 21:51:06|install|libKF5Su5|5.90.0-1.2|x86_64||openSUSE-20220205-0|a2d224e5b28f0afe91ee71f9822267af64b92486d09d79ac63f2d60a432f48de|
# 2022-02-23 21:51:07 dnsmasq-2.86-3.3.x86_64.rpm installed ok
# Additional rpm output:
# /usr/bin/systemd-sysusers --replace=/usr/lib/sysusers.d/system-user-dnsmasq.conf -
# 
2022-02-23 21:51:07|install|dnsmasq|2.86-3.3|x86_64||openSUSE-20220205-0|68ca76cb9381419f9608e7cf938a96604ba1682e49be61b7d090d5ba9ec15a09|
# 2022-02-23 21:51:10 man-2.9.4-3.3.x86_64.rpm installed ok
# Additional rpm output:
# Updating /etc/sysconfig/cron ...
# 
2022-02-23 21:51:10|install|man|2.9.4-3.3|x86_64||openSUSE-20220205-0|51e5fa38468fe9cf44aab374aaa4f44e2a0ed2152aba634dcc279302fa3a9345|
# 2022-02-23 21:51:14 postfix-3.6.2-7.4.x86_64.rpm installed ok
# Additional rpm output:
# /usr/bin/systemd-sysusers --replace=/usr/lib/sysusers.d/postfix-user.conf -
# Executing upgrade-configuration.
# Editing /etc/postfix/master.cf, adding missing entry for tlsmgr service
# Updating /etc/sysconfig/postfix ...
# Updating /etc/sysconfig/mail ...
# 
2022-02-23 21:51:14|install|postfix|3.6.2-7.4|x86_64||openSUSE-20220205-0|2bee5b00f082f92291ca7a8be001babcc7373d644234a902b8075554ec186a3e|
# 2022-02-23 21:51:14 system-user-bin-20170617-24.5.noarch.rpm installed ok
# Additional rpm output:
# /usr/bin/systemd-sysusers --replace=/usr/lib/sysusers.d/system-user-bin.conf -
# 
2022-02-23 21:51:14|install|system-user-bin|20170617-24.5|noarch||openSUSE-20220205-0|d8db4545aa9e962da40ae622453804355b7df2c3b86e6cab47d77af22561bee4|
2022-02-23 21:51:17|install|audit|3.0.6-2.3|x86_64||openSUSE-20220205-0|424a3463de885d188fd0a2ab07909cb915354d6cac72961e7f8ab73653f973e1|
# 2022-02-23 21:51:18 nfs-client-2.5.4-28.4.x86_64.rpm installed ok
# Additional rpm output:
# /usr/bin/systemd-sysusers --replace=/usr/lib/sysusers.d/statd-user.conf -
# Updating /etc/sysconfig/nfs ...
# /usr/sbin/mount.nfs: setting to root:root 4755 (wrong permissions 0755)
# 
2022-02-23 21:51:18|install|nfs-client|2.5.4-28.4|x86_64||openSUSE-20220205-0|c6384f99716bb671693b296f91ebe67d66cd3d8f3a468fa7f1beac9e8b367b1b|
2022-02-23 21:51:19|install|net-snmp|5.9.1-1.4|x86_64||openSUSE-20220205-0|03d0dc14ce5d487779159193f2c89a7ba6deb8ef9d901c6b240b01d99c4bdefe|
2022-02-23 21:51:21|install|sane-backends|1.1.1-1.2|x86_64||openSUSE-20220205-0|9c5ddf91a07739be7e7e9cbb1f1f976cf2832ec0e5bedbae0d3c38ae72552e7f|
2022-02-23 21:51:21|install|pipewire-modules-0_3|0.3.45-1.2|x86_64||openSUSE-20220205-0|74d2b269c32e2e2eefc162715a6bacbcfc35090fe6186a6d19a2a0f29422b204|
2022-02-23 21:51:22|install|irqbalance-ui|1.8.0.18.git+2435e8d-2.5|x86_64||openSUSE-20220205-0|d9080a6eaddd29e042503cd410705d8212a3e2b3c42d0f0ab140191a650916f5|
# 2022-02-23 21:51:23 chrony-4.2-2.2.x86_64.rpm installed ok
# Additional rpm output:
# /usr/bin/systemd-sysusers --replace=/usr/lib/sysusers.d/system-user-chrony.conf -
# Updating /etc/sysconfig/chronyd ...
# 
2022-02-23 21:51:23|install|chrony|4.2-2.2|x86_64||openSUSE-20220205-0|ac40615a7d7dbd3706fafd323cfe4e34c11cac893d3054ab7859761cb283bf4b|
2022-02-23 21:51:23|install|avahi-lang|0.8-14.2|noarch||openSUSE-20220205-0|fa9f5b3144d502715051e4e3b72e7e6adecd62d250ee40bd2849bf6cd5ec48cf|
2022-02-23 21:51:23|install|apparmor-parser-lang|3.0.4-1.2|noarch||openSUSE-20220205-0|2aad72737d291159c532f782704dad5a1c9650c6dce56c2e3ca20a2469aa7d65|
2022-02-23 21:51:28|install|apparmor-abstractions|3.0.4-1.2|noarch||openSUSE-20220205-0|dfaa23e2abedd2882e91ea3ce36a389c6384bf610ff40c9de26cfaa4dc972649|
2022-02-23 21:51:28|install|accountsservice-lang|0.6.55-10.2|noarch||openSUSE-20220205-0|56078bfa8a0a398d064c236e56825ee2bc1ad2492aaf14d4989b28bf81a99b45|
2022-02-23 21:51:29|install|xterm|370-1.3|x86_64||openSUSE-20220205-0|c232baabc985352faa2e134bfdd633e2f14c6bc1d0dbe92eb8085ba4f58ac14c|
2022-02-23 21:51:31|install|texlive-lm-fonts|2021.187.2.005svn58637-47.4|noarch||openSUSE-20220205-0|95a6cfaba116307b87074c19fb8f3a416316449c3550d00afa24c84f9909f5d3|
2022-02-23 21:51:31|install|dracut|055+suse.226.g44139dde-1.2|x86_64||openSUSE-20220205-0|c333046e7b1a6550d317aeb9d2fef01b83d1455da739229da62ad526ed64343c|
2022-02-23 21:51:33|install|dmraid|1.0.0.rc16-42.11|x86_64||openSUSE-20220205-0|46e3649969037c0ed8c4653cb4af61a21fc038d3d3c2443a2ff0ceacf2324d52|
2022-02-23 21:51:36|install|desktop-file-utils|0.26-3.3|x86_64||openSUSE-20220205-0|1ba5591809f3f9f62c56a4cde6953100c7ebeee04f0777ddc60edc9337d0eff3|
2022-02-23 21:51:37|install|alsa-utils|1.2.6-3.2|x86_64||openSUSE-20220205-0|6a5b3c54cef8ca5c57bc045adb12621d89f5dc76bbf35dd9b2478ff5118d4a82|
2022-02-23 21:51:37|install|libudisks2-0_btrfs|2.9.4-3.2|x86_64||openSUSE-20220205-0|97c6ef57f9c7fd120153c1f899dce08bf1a3c913b9455ed63d7eff529e53854e|
2022-02-23 21:51:38|install|phonon4qt5-lang|4.11.1-3.3|noarch||openSUSE-20220205-0|666ffd00fb9ed55c72c2ae6ff8558a7df58c8d0ae9a9ce9afcfd11bd25bcec7d|
2022-02-23 21:51:38|install|phonon4qt5-backend-gstreamer-lang|4.10.0-1.15|noarch||openSUSE-20220205-0|6d31584f0f41566f5de090e34d07790590c8b9cd823801506f327e33623ae7c0|
2022-02-23 21:51:38|install|libgstsdp-1_0-0|1.18.6-1.3|x86_64||openSUSE-20220205-0|b49987725c396a130f4efafa7425547ddfc607288241db52e949e85b7a5f9eaa|
2022-02-23 21:51:40|install|ModemManager|1.14.8-2.4|x86_64||openSUSE-20220205-0|5ba143c19bc801187f11f8491895228bc90800c355a13a4fd14be553895eba04|
2022-02-23 21:51:40|install|libibmtss1|1.6.0-3.3|x86_64||openSUSE-20220205-0|6fc6b82686dfaa63965b5bb2ffbcef650a059a06e8f489e79bb50400c0c188e3|
2022-02-23 21:51:40|install|libQt5Sensors5|5.15.2+kde2-2.6|x86_64||openSUSE-20220205-0|cd4b36d81eb9b4d9ba00cd3df13119cb24c4f8f1df86bfc8359f167d67ea63a6|
2022-02-23 21:51:41|install|libQt5Positioning5|5.15.2+kde6-2.8|x86_64||openSUSE-20220205-0|200e76b1b6d18a3f9b2a66fad13556b44dd4d837971703119bd54814dc178b6a|
2022-02-23 21:51:41|install|libimobiledevice-1_0-6|1.3.0+git.20210921-1.2|x86_64||openSUSE-20220205-0|53d4af3a2736a453d8b1fe33fb8febfd0fe40f9ee722c03c666f55349f3087f0|
2022-02-23 21:51:41|install|libKF5Su5-lang|5.90.0-1.2|noarch||openSUSE-20220205-0|907d5d12fbad3b66c5f200002c63349a4236784de4be4e795d2c25f8f4eccb1e|
# 2022-02-23 21:51:42 mailx-12.5-33.1.x86_64.rpm installed ok
# Additional rpm output:
# warning: file /usr/share/man/man1/mail.1.gz: remove failed: No such file or directory
# warning: file /usr/share/man/man1/Mail.1.gz: remove failed: No such file or directory
# 
2022-02-23 21:51:42|install|mailx|12.5-33.1|x86_64||openSUSE-20220205-0|ca10f597830bf118f459a7031b574ef4b8d1a9778a6dc4d464eb45eb8b03e5f0|
2022-02-23 21:51:42|install|openssh-common|8.8p1-1.5|x86_64||openSUSE-20220205-0|012e6b256427a68e832c9e1e19b7896cb2d1df1b17117ed18db66e94f07575a1|
# 2022-02-23 21:51:43 autofs-5.1.8-2.2.x86_64.rpm installed ok
# Additional rpm output:
# Updating /etc/sysconfig/autofs ...
# Updating /etc/sysconfig/autofs ...
# 
2022-02-23 21:51:43|install|autofs|5.1.8-2.2|x86_64||openSUSE-20220205-0|f1e416f2ce685129bdfe1fa7a963fbe9291d151016b6c112a142000cb0ebe262|
2022-02-23 21:51:43|install|sane-backends-autoconfig|1.1.1-1.2|x86_64||openSUSE-20220205-0|06cd9b5650993f6ac9868f44d137db462299cf5d586efeb77aac74c738d2a6c3|
2022-02-23 21:51:43|install|pipewire-tools|0.3.45-1.2|x86_64||openSUSE-20220205-0|14ffa2e732f2aa262a21acd25c75f9b2487f193cec2a7441b36cce8d75dbbe48|
2022-02-23 21:51:44|install|libwireplumber-0_4-0|0.4.8-2.2|x86_64||openSUSE-20220205-0|695bbd71c7ee8aec53807338ae4c7e36449ef49ca41adca7957d8f8ab4fbccc6|
2022-02-23 21:51:44|install|cups-config|2.3.3op2-8.2|x86_64||openSUSE-20220205-0|37e069b32908c2fe44212102c3797afd361e2ba4208d1b97177bc36665a418ee|
2022-02-23 21:51:45|install|apparmor-profiles|3.0.4-1.2|noarch||openSUSE-20220205-0|163bcf6fe10a14457a0ccbf12b877fd205a20f2c54fbce8127d29696512b90ca|
# 2022-02-23 21:51:47 xf86-input-wacom-0.40.0-2.2.x86_64.rpm installed ok
# Additional rpm output:
# Failed to try-restart wacom-inputattach@.service: Unit name wacom-inputattach@.service is missing the instance name.
# See system logs and 'systemctl status wacom-inputattach@.service' for details.
# 
2022-02-23 21:51:47|install|xf86-input-wacom|0.40.0-2.2|x86_64||openSUSE-20220205-0|a6773a92bb4347e749cef47f500efc4296f67fc72e3da556abcd9ee54ca57095|
2022-02-23 21:51:47|install|xf86-input-vmmouse|13.1.0-8.7|x86_64||openSUSE-20220205-0|e559a0b302b7e9b6fdef9f9a6cd64218a9c2a9d38aab2e18b4f043c702dfeb2e|
2022-02-23 21:51:48|install|sensors|3.6.0-8.2|x86_64||openSUSE-20220205-0|ad61c22fb7391ddf6f93600c0d87a4a4dcbd2b9c59ce6174bc969a66b650d8d7|
2022-02-23 21:51:49|install|pulseaudio|15.0-10.2|x86_64||openSUSE-20220205-0|5ae11042539458692ea266eb928e0bedc79412fe882cd67e87b06e4e6c2dec30|
2022-02-23 21:51:49|install|plymouth-scripts|0.9.5~git20210406.e554475-4.2|noarch||openSUSE-20220205-0|8ae900220ec143088692e38979ecf3e18dcfae1d4a914218fbd0b19153651a95|
# 2022-02-23 21:51:50 mdadm-4.1-16.3.x86_64.rpm installed ok
# Additional rpm output:
# Updating /etc/sysconfig/mdadm ...
# 
2022-02-23 21:51:50|install|mdadm|4.1-16.3|x86_64||openSUSE-20220205-0|27307f7a2ee9862b8709d43111a7c76564f4baa85629b70572f964d72760e1bd|
2022-02-23 21:51:53|install|lvm2|2.03.12-4.2|x86_64||openSUSE-20220205-0|ff4440b2287d7c4e3c00b624d3c535d2ca70e05c2678bd3cc4a07cd8698b7076|
2022-02-23 21:51:53|install|libmtp9|1.1.19-1.3|x86_64||openSUSE-20220205-0|fa3b95e4ed4a2e8f991e8f43714393a1724217101c55530fa11b9328bfdf14a5|
2022-02-23 21:51:55|install|libgphoto2-6|2.5.28-1.2|x86_64||openSUSE-20220205-0|a0c32d1daee132a586ae39f44bff6e71f56248323eba910944db8b805e8b18c4|

…which fits to the proposed “mailx” problem in the bug report… :smiley: