HDD permissions issue, need some help.

Soldato
Joined
7 Jan 2007
Posts
10,607
Location
Sussex, UK
Hiya,

Right me little home server has one final hiccup to overcome!

I have a 1 TB drive, mounted to mnt/storage1/ I have Chown -R mediatomb so the owner runs as mediatomb. This means that mediatomb can then scan my media correctly.

The trouble is changing the ownership of the 1tb drive from dean to mediatomb then borks the permissions for samba, ftp & sabnzbd.

Is it best to change the init script of mediatomb to run under dean user? or something else?

The trouble is if I change the init script to user dean and it said there was a permissions issue for sqlite database.

I'm abit stumped at the mo.
 
ok, what I have done is create a group with addgrp called media_write and added it to mnt/storage1

then nano/etc/group & added media_write:mediatomb,dean

rebooted and mediatomb still doesnt have permission. now rebooting the server but going to try mediatomb as the owner and pray samba etc etc work :p
 
Fixed it!

Had to do this:

apt-get install mediatomb

cd /etc/init.d/

chmod -x mediatomb

chmod 777 mediatomb

sudo /etc/default/mediatomb

change group to media_write

edit this file to get avi support in ps3:

sudo nano /etc/mediatomb/config.xml

Instructions in this thread:

http://www.psu.com/forums/showthread.php?t=75619

sudo addgrp media_write

sudo /etc/group

add dean,mediatomb (to media_write)

sudo chgrp media_write /mnt/storage1

sudo chmod 770 /mnt/storage1 -R

http://192.168.0.10:49152/ for web ui, add in your folders.
 
Back
Top Bottom