NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.22k stars 14.21k forks source link

krename - 'This program is not installed setuid root - "user" CIFS mounts not supported.' #295855

Closed Biepa closed 7 months ago

Biepa commented 8 months ago

Describe the bug

Installing "krename" as user or root is showing the error "This program is not installed setuid root - "user" CIFS mounts not supported." when trying to access shares. So I assume there needs to be an adjustment in the installation of this tool. The shares are working fine with Dolphin and other tools.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install "krename"
  2. Start it
  3. Try to access a share

Expected behavior

To be able to access shares as it works with Dolphin even when installing krename as a user.

Screenshots

Screenshot_20240314_122438

Notify maintainers

@peterhoeg

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.21, NixOS, 24.05 (Uakari), 24.05.20240312.0ad13a6`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/store/k5l01g2zwhysjyl5zjvg5zxnj0lyxpp1-source`

Add a :+1: reaction to issues you find important.

peterhoeg commented 8 months ago

Accessing a share (or any other file resource) is abstracted away by kio and has nothing to do with krename itself.

We are still building krename against kf5, so are you by chance running this in a plasma6 environment?

I am guessing that if you instead mount the shares via /etc/fstab, it would work as expected?

Biepa commented 8 months ago

Thank you for the reply. Yes I'm running plasma 6.

I will then just wait for it. I guess we can close this issue then?

peterhoeg commented 8 months ago

I must admit, I'm not sure exactly how we can have kio from both kf5 and kf6 present with the proper suid wrappers and working for both cases and as I understand it there is work in progress to port krename to kf6/qt6 so presumably within the next couple of months, this will be fixed upstream.

As a workaround, I will suggest mounting via /etc/fstab - it's also nicer to have all mounting done declaratively rather than having to manually mount it in user mode.

Biepa commented 8 months ago

Thank you for the insights. Thoug I have to admit I don't know enough to know about "kio" and just assume that "kf" means "KDE Framework"?

I currently have my shares declared via the "fileSystems" option and they all show up in the fstab file. So no manual mounting is done here.

Biepa commented 8 months ago

@peterhoeg Just pinging to clarify it you mean another way that the mentioned "file systems" config option so we can possibly close this.

Biepa commented 7 months ago

This is working now for whatever reason.