Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-08-2009, 04:44 AM   #1
LQ Newbie
Registered: Jul 2009
Posts: 6

Rep: Reputation: 0
HDD permissions issue, need some help.


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?
Old 07-08-2009, 05:20 AM   #2
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252

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!
Old 07-08-2009, 07:00 AM   #3
LQ Newbie
Registered: Jul 2009
Posts: 6

Original Poster
Rep: Reputation: 0
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)
dean@homeserver:~$ id mediatomb
uid=106(mediatomb) gid=111(mediatomb) groups=111(mediatomb),109(sambashare),1000(dean),1001(media_write)
dean@homeserver:~$ ls -al /mnt
total 12
drwxr-xr-x  3 root root        4096 2009-06-28 19:50 .
drwxr-xr-x 21 root root        4096 2009-07-08 11:34 ..
drwxrwxrwx  5 dean media_write 4096 2009-07-05 19:23 storage1
I really dont get it. Media_write should allow mediatomb to read and write the drive but it can't.

Any ideas?
Old 07-08-2009, 07:34 AM   #4
LQ Newbie
Registered: Jul 2009
Posts: 6

Original Poster
Rep: Reputation: 0
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:

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 for web ui, add in your folders.


hdd, permissions

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HDD permissions netpumber Slackware 4 02-28-2009 06:46 AM
Mounting/Permissions issue w/ external HDD enclosure (Debian) jef3189 Linux - Hardware 1 09-29-2008 04:41 PM
2nd HDD and permissions madman8 Slackware 9 01-04-2006 10:23 PM
Permissions on second hdd devilsaltarboy Linux - Newbie 2 06-03-2005 10:35 AM
permissions to use my hdd jappstam12345 Mandriva 2 03-26-2005 04:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration