Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 58
  1. #11
    Quote Originally Posted by d6jg View Post
    Do you have a Squeezeboxserver user and group set up on the NAS?
    Yes, I do.

  2. #12
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    4,180
    I donĺt think you should be declaring the UID and GID in the fstab. The Squeezeboxserver user on the Pi will have a different UID to the one on the NAS
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

  3. #13
    If I don't, debian sees the owner as root.
    The way I see it, uid/gid tells debian how to handle rights on its side, while username/password is for NAS access.
    Unless i am wrong... Nevertheless if i don't put uid/gid, then lms cannot access the folder at all unless i put the NAS folder public, and even then read rights don't work. Even if it is technically logged to his username on the NAS.

    I don't understand why read rights won't work.
    Last edited by Marsupial; 2019-10-14 at 12:11.

  4. #14
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    4,180
    What user do you use from your Android? Have you tried that?

    Does the Squeezeboxserver user on the NAS have full rights to access the music folders?
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

  5. #15
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    936
    Quote Originally Posted by Marsupial View Post
    Of I don't, debian sees the owner as root.
    The way I see it, uid/gid tells debian how to handle rights on its side, while username/password is for NAS access.
    Unless i am wrong..
    You are not - your fstab entry seems ok (file_mode=0644 / dir_mode=0755 would be a bit cleaner...)

    However, it looks like you have ACLs set on /media/NAS (that's what the + in "-rwxrwx---+" normally means).
    Check with getfacl /media/NAS and getfacl --default /media/NAS
    Last edited by Roland0; 2019-10-14 at 11:58.
    Various SW: Web Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

  6. #16
    Quote Originally Posted by d6jg View Post
    What user do you use from your Android? Have you tried that?

    Does the Squeezeboxserver user on the NAS have full rights to access the music folders?
    I tried many users, even tried changing rights on purpose for tests. What I get when I mount in debian differs fro what I get on every other machines. That is why I think I must be doing something wrong when mounting.

    On android, I access to the file trough a software, I don't mount anything. There may be a difference.

  7. #17
    Quote Originally Posted by Roland0 View Post
    Check with getfacl /media/NAS and getfacl --default /media/NAS
    I'll try that in a short while and report. I think you're up to something.

  8. #18
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    936
    Quote Originally Posted by d6jg View Post
    What user do you use from your Android? Have you tried that?

    Does the Squeezeboxserver user on the NAS have full rights to access the music folders?
    You don't need a squeezeboxserver user on the NAS if you have a public folder which is readable by e.g. a guest user (and imho having one makes the setup more confusing, unless you really need to restrict access to the NAS share by not allowing guest access)
    As OP can access the files on the share from another windows box with the same user (e.g. guest), it's almost certainly a client issue.
    Various SW: Web Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

  9. #19
    Quote Originally Posted by Roland0 View Post
    However, it looks like you have ACLs set on /media/NAS (that's what the + in "-rwxrwx---+" normally means).
    Check with getfacl /media/NAS and getfacl --default /media/NAS
    getfacl wasn't working, I didn't have ACL installed. a little sudo apt install acl later and that was fixed.


    ... at this point I have the NAS folder public, and my fstab entry is
    //192.168.0.104/iTunes /media/NAS cifs vers=1.0,guest,uid=108,gid=1004,file_mode=0644,dir _mode=0755 0 0


    here's the result for getfacl /media/NAS
    Code:
    getfacl: Removing leading '/' from absolute path names
    # file: media/NAS
    # owner: squeezeboxserver
    # group: squeezeboxserver
    user::rwx
    group::---
    other::rwx
    default:user::rwx
    default:group::---
    default:other::rwx
    and for getfacl /media/NAS
    Code:
    getfacl: Removing leading '/' from absolute path names
    # file: media/NAS
    # owner: squeezeboxserver
    # group: squeezeboxserver
    user::rwx
    group::---
    other::rwx
    I don't see anything new...
    Last edited by Marsupial; 2019-10-14 at 12:35.

  10. #20
    Quote Originally Posted by Roland0 View Post
    As OP can access the files on the share from another windows box with the same user (e.g. guest), it's almost certainly a client issue.

    That is how I am seeing it too - if it was a NAS issue, or a user issue, I wouldn't be able to log to the NAS on other machines.


    I am starting to suspect the usage of vers=1.0

    if I do not put it, then mounting fails and reports
    Code:
    mount error(112): Host is down
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    from firmware date and information gathered online, I am almost certain the NAS uses SMB 3, so this may be wrong and cause issues. But I cannot seem to find out how to mount otherwise. Maybe "vers=1.0" is the culprit?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •