Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?
Distribution: Slackware 13, RHEL5, Solaris (10 on SPARC), HP-UX (11.11 on PA-RISC)
Posts: 121
Thanked: 27
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.