HDD permissions issue, need some help.
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. Is it an issue with fstab? or is it because mediatomb init script wants to run under user mediatomb instead of my usual user dean? |
Greetingz!
First things first, I'm going to assume that you're running an Ext2, Ext3, ReiserFs or other such UNIX-compatible filesystem that supports the standard UNIX ownership, group, and permissions models. If you're using a FAT32 or NTFS filesystem on the 1TB hard disk, please discard my advice. (NOTE: to determine what filesystem is on the disk, once it's mounted, type the "mount" command and check it's output for that mountpoint.) Typically, when you want to grant more than one user access to files, you would create a new "group" that both users were a member. However, you may already have a generic group that many (if not all) of your users are a part of. Sometimes this group is called "Staff", other times it's simply "users". I would strongly suggest using the "id" command to find out if the "dean" and "mediatomb" users share a group. Note that it is possible to have a group named after a user, so there very well may be both a "mediatomb" user, as well as a "mediatomb" group. The fastest way to find out would be to check your /etc/group file. Hope this helps! |
Code:
uid=1000(dean) gid=1000(dean) groups=20(dialout),24(cdrom),25(floppy),29(audio),44(video),46(plugdev),109(sambashare),111(mediatomb),1000(dean),1001(media_write) Code:
dean@homeserver:~$ ls -al /mnt Any ideas? |
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. |
All times are GMT -5. The time now is 12:05 PM. |