Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pmount isn't installed with suid root #19617

Closed
anfelor opened this issue Oct 17, 2016 · 3 comments
Closed

pmount isn't installed with suid root #19617

anfelor opened this issue Oct 17, 2016 · 3 comments

Comments

@anfelor
Copy link

anfelor commented Oct 17, 2016

Issue description

Apparently the suid hasn't been set for pmount.

$ pmount /dev/sdb1
Error: this program needs to be installed suid root

I would consider this a bug, but it seems that it was done on purpose.
If so, I would appreciate a description of how to mount usb drives then on NixOS.

Steps to reproduce

Install pmount and try to mount a usb drive
This happens both with nix-env installation and system-wide installation.

Technical details

  • System: (NixOS: 16.09)
  • Nix version: 1.11.4
  • Nixpkgs version: 16.09.680.4e14fd5
@vbgl
Copy link
Contributor

vbgl commented Oct 17, 2016

Here is a hint: http://nixos.org/nixos/manual/options.html#opt-security.setuidPrograms
An example of configuration for slock: https://nixos.org/wiki/Slock

@anfelor
Copy link
Author

anfelor commented Oct 17, 2016

Ah, great! It works now.

Thank you!

@anfelor anfelor closed this as completed Oct 17, 2016
@grahamc
Copy link
Member

grahamc commented Aug 3, 2017

setuidPrograms has been replaced with security.wrappers:

 security.wrappers = {
   pmount.source = "${pkgs.pmount}/bin/pmount"; 
   pumount.source = "${pkgs.pmount}/bin/pumount";
 };

https://nixos.org/nixos/options.html#security.wrappers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants