NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.82k stars 13.92k forks source link

xfce4-sensors-plugin: hddtemp permission denied #32887

Open davidak opened 6 years ago

davidak commented 6 years ago

Issue description

untitled

Steps to reproduce

  1. Install xfce.xfce4-sensors-plugin
  2. add sensors plugin to Xfce panel
  3. double click on plugin

Technical details

lukateras commented 6 years ago

This can be solved by an additional line in /etc/nixos/configuration.nix:

security.wrappers.hddtemp.source = "${pkgs.hddtemp}/bin/hdtemp";

Nixpkgs alone can't setuid programs, so it can't be handled in user profile.

For system profile, services.xserver.desktopManager.xfce module might setuid hddtemp when xfce.xfce4-sensors-plugin is in environment.systemPackages.

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
nick87720z commented 4 years ago

There is way better (sane) solution then just setuid'ing hddparm. I got same problem in ubuntu, which I installed to friend laptop. Found solution mentioned here: https://askubuntu.com/questions/280440/how-to-get-xfce4-sensors-plugin-to-show-hdd-temperature-in-xfce-panel At my own system (gentoo) xfce4-sensors-plugin has netcat support enabled together hddparm if emerged with 'hddparm' use flag. In contrast, rules file in ubuntu package doesn't have it. As result - even if I start hddparm daemon manually with all options (as mentioned in replies at above link), it's useless.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

romildo commented 3 years ago

Still relevant.

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info

gurgelff commented 1 year ago

It's still not working. Sensors plugin is declared in System Packages (along with the other XFCE plugins) but I still get that permission error.