With the latest update of KDE, I am seeing these errors:

Sep 26 23:07:30 desktop sddm-greeter[709]: inotify_add_watch(/etc/fstab) failed: (Permission denied)
Sep 26 23:08:18 desktop kdeinit5[819]: inotify_add_watch(/etc/fstab) failed: (Permission denied)
Sep 26 23:08:19 desktop kgpg[878]: Error loading text-to-speech plug-in "flite"
Sep 26 23:08:19 desktop org_kde_powerdevil[897]: inotify_add_watch(/etc/fstab) failed: (Permission denied)
Sep 26 23:08:23 desktop plasmashell[856]: inotify_add_watch(/etc/fstab) failed: (Permission denied)

My /etc/fstab permissions are:

-rw-r----- 1 root root 7182 Jun 26 21:51 /etc/fstab

Is that not correct?

  • 1
    You're right, it's not correct unless you run kde as user root – Ipor Sircer Sep 27 '18 at 3:41
  • chmod o+r /etc/fstab seems to have resolved it, but further testing may be needed. I would also prefer not to have that file readable by everyone. – MountainX Sep 27 '18 at 3:59
  • Why don't you want /etc/fstab to be world readable? It is by default on all mainstream distros, and a lot of things assume that it is. See also serverfault.com/questions/575564/… – Joseph Sible Sep 27 '18 at 23:10
  • @JosephSible - OK, I'll leave it world readable then. Seems like a minor security hole to me, but if that's the design I'll go with it. – MountainX Sep 28 '18 at 2:22
  • How is it a security hole? Do you have sensitive information in it? – Joseph Sible Sep 28 '18 at 2:34

No, that's not correct. /etc/fstab is supposed to be world readable. A LOT of programs depend on this, and it's world readable on every standard Linux distribution. You're not supposed to put credentials or anything else that's actually sensitive in this file (see Does /etc/fstab need to be world readable? for how to avoid this), and hiding anything else in it would just be security-through-obscurity, which isn't actually secure at all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.