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.
 
go through each directory/file and revert the permissions, then add the user(s) you wish to access to the group that has permission.
 
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.
 
Make a user called "whateveryoulike"

Code:
chown oxy mnt/storage1/ #your name
chgrp whateveryoulike mnt/storage1/

Then add mediatomb and samba to the group "whateveryoulike", and set the 2nd permissions byte to the access you would like mediatomb and samba to have.
 
Last edited:
Even that is unnecessary, surely? Just add the group that *already has* access to the drive, to the mediatomb user.
 
Depends on context.. I'm used to looking at what groups a user has (with `id` or `groups`) not what users a group has. :)
 
Back
Top Bottom