I want to clarify how I fixed this so others can benefit from it.

The short answer: chown fixed it in the short term but was more of a
work around solution. The real problem was that my drive was not system
mounted via FStab (I didn't understand about this before). Doing this
made the disk available to any services running on the machine, of which
LMS was one.

Thanks everyone for their help.  I am reposting the information I
postsed in another thread. Here is a write up of the full problem and
the solution.

---------------------------

PROBLEM:

I am having a problem that I previously mentioned in another thread. I
am unable to access my second disk where my media is stored from within
the LMS settings. They do not show up. This is obviously an ownership
issue. The disk is accessible from both VNC and SSH, but I am obviously
accessing it through my account in this case. LMS is presumably using
its own account which does not have permission to access the disk.

The music folder is currently located at:
/media/omstedall/mediadrive/music

'omstedall' is the name of my account. 'mediadrive' is the name of the
second disk.

I have tried to chown the Music folder to the LMS account using: sudo
chown -R squeezeboxserver /media/omstedall/mediadisk/Music

This didn't work - presumably because the parent folder is still owned
by my account. I am pretty new to permissions in Linux, and am wary of
using trial and error since messing around with chown is what caused my
to hose my machine yesterday! 

Does anyone know how how to get this working? Is there a way to add LMS
as a second user, without affecting the permissions of my personal
account?

Here is the feedback from LS -l for the various folders in case it
proves useful:

omstedall@ubuntu-server:/media$ ls -l
total 8
lrwxrwxrwx 1 root root 7 Nov 1 12:18 floppy -> floppy0
drwxr-xr-x 2 root root 4096 Nov 1 12:18 floppy0
drwxr-x---+ 3 root root 4096 Nov 1 15:08 omstedall

omstedall@ubuntu-server:/media/omstedall$ ls -l
total 4
drwxrwxrwx 6 116 cdrom 4096 Sep 16 23:18 mediadisk
omstedall@ubuntu-server:/media/omstedall$ 

omstedall@ubuntu-server:/media/omstedall/mediadisk$ ls -l
total 56
drwxrwxrwx 2 116 root 16384 Sep 2 18:27 lost+found
drwxrwxr-x 2 116 omstedall 4096 Oct 30 12:58 Movies
drwxrwxrwx 1012 squeezeboxserver omstedall 36864 Sep 26 04:55 Music

SOLUTION:

It seems the problem was being caused by the second drive being
auto-mounted by the desktop, rather than being mounted by the system.
This meant that LMS couldn't access it. 

I fixed it by mounting the drive via FStab using the somewhat
complicated instructions (at least for a beginner like me!) here:

https://help.ubuntu.com/community/Au...ountPartitions

Specifically, I followed the part about 'Systemwide Mounts'.

I also found this link useful: https://help.ubuntu.com/community/Fstab

Hope this helps anyone else with the same problem.


------------------------------------------------------------------------
saltedlolly's Profile: http://forums.slimdevices.com/member.php?userid=46484
View this thread: http://forums.slimdevices.com/showthread.php?t=96338

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

Reply via email to