I figured out why things broke from SC to SBS.  Turns out, under
SqueezeCenter I had added the "squeezecenter" user to the primary group
owning the Music directory.  When I upgraded, that user account was
removed and a 'squeezeboxserver' was created.  Even though the new user
had read access to the the entire Music directory via membership in the
"guests" group, SBS still wouldn't traverse those directories.

I haven't dived into the SBS (and SS) source (and am not particularly
motivated to), but this feels very much like it is arbitrating its own
file access by checking group ownership on the files, rather than
allowing the file accesses to fail or succeed and then handling errors
returned by the operating system.

As demonstrated in my original post, the squeezeboxserver user was able
to access the Music directory and its files, even though the SBS program
was failing to do so.

For those interested, I use POSIX ACLs on my system so that individual
users and groups can have customized access to specific directories
without having more access than is necessary.

I have given the guests group read & execute on the Music directory
tree:


Code:
--------------------
    
  $ getfacl Music
  getfacl: Removing leading '/' from absolute path names
  # file: raid/share/mp3s/Music
  # owner: zach
  # group: Domain\040Users
  user::rwx
  group::rwx
  group:guests:r-x
  mask::rwx
  other::---
  default:user::rwx
  default:group::rwx
  default:group:guests:r-x
  default:mask::rwx
  default:other::---
  
--------------------


And then I added the squeezeboxserver user to the guests group.  Even
though this allowed that user sufficient access to the directory and
files, SBS still failed.  So instead I have now made the
squeezeboxserver user a member of the owning group, Domain Users.


Code:
--------------------
    
  $ id squeezeboxserver 
  uid=10034(squeezeboxserver) gid=10038(squeezeboxserver) 
groups=10038(squeezeboxserver),513(Domain Users)
  
--------------------


Things seem to be working now, but I'd really like some insight into
this behavior if anyone knows anything.

Thanks


-- 
zcutlip
------------------------------------------------------------------------
zcutlip's Profile: http://forums.slimdevices.com/member.php?userid=40303
View this thread: http://forums.slimdevices.com/showthread.php?t=81742

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to