Skip to content

[BUG] Tag editing fails for libraries on mounted cifs volumes #600

Open

Description

@hearthsinger

Describe the bug
My music library is stored in a SMB share for access across my network. My linux machine has the share mounted via a systemd mount, with the uid/gid set to be my user's. I have RW permissions on all files in the mount and can create and modify all files in the mount in other programs.

When ncmpcpp is pointed at either the mounted volume (/mnt/<vol>/music), or at a symlink to this directory from within my homedir (~/music), all tag updates fail with a Permission denied error. I have double checked the permission bits, and all files/dirs show 755 for the permissions.

When I point ncmpcpp/mpd at a directory local to my machine with the same files in the same structure with the same permission bits, tag writing works as expected

To Reproduce
Steps to reproduce the behavior:

  1. Mount a cifs volume via systemd, using your user's uid and gid
  2. Point mpd/ncmpcpp at the volume
  3. Attempt to edit tags on any file
  4. See Permission denied error

Expected behavior
ncmpcpp is able to successfully update tag information

Screenshots/Logs
Error in the tui
Thu Jul 25 02:35:53 PM PDT 2024
Permission bits on the file in question
Thu Jul 25 02:39:06 PM PDT 2024
ps output showing the user attached to both the mpd and ncmpcpp
Thu Jul 25 02:40:47 PM PDT 2024

Desktop (please complete the following information):

  • OS: Arch Linux, Kernel 6.6.40-2-lts
  • Terminal: Alacritty
  • Version ncmpcpp v0.9.2

Activity

  1. litemotiv commented on Oct 20, 2024

    @litemotiv

    Just wanted to let you know that i use the same setup and Tag Editing works okay on my system. So it's likely that this is a local permissions issue for you and not an ncmpcpp bug.

    Here is my systemd mount for reference:

    [Unit]
    Description=Mount SMB share
    
    [Mount]
    What=//1.2.3.4/foldername
    Where=/mnt/foldername
    Options=_netdev,username=myuser,password=mypassword,iocharset=utf8,uid=1000,gid=1000
    Type=cifs
    TimeoutSec=30
    
    [Install]
    WantedBy=multi-user.target
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions