Media files (Music, Photos, Videos) can be stored and accessed on the Amahi Home Server with one of two scenarios while using ownCloud.
<ol>
<li>Using existing “Amahi Shares” for file storage and ownCloud for files file access and storage management.
<li>Using ownCloud for file storage, managing access, and file storage management.
</ol>
===Amahi Home Server File Shares===
Amahi Home Server once installed provides a set of “Storage Shares” that are available to all Amahi user accounts. Some of them are provided for the purposes of storing media files (Music, Pictures, Movies) for all Amahi users to access. These shares are usually shared via the Samba (SMB) sharing service on the Amahi Home Server.
Some things you need to know:
* Music mediaphysical location: /var/hda/files/music (a.k.a. Music)* Photograph mediaphysical location: /var/hda/files/pictures (a.k.a. Pictures)* Video mediaphysical location: /var/hda/files/movies (a.k.a. Movies)
* Share(s) directory ownership default (chown): <hda_administrator_account>:users
* Share(s) directory permissions default (chmod): 775 (rwx:rwx:r-x)
===ownCloud External Storage Support===
ownCloud provides a highly configurable sharing environment for files that are accessible from a Web Browser User Interface (Web UI) or via , the WebDAV service built in to ownCloud. Stored files are accessible to , or an ownCloud user accounts by various sharing configurationsSync client installed on a workstation.
Some things you need to know:
* ownCloud provides an “External Storage Support” feature that supports access to files “external” to the ownCloud “internal” filesystem. This feature must be "enabled" by the ownCloud "admin" user via Settings => Admin.
* File ownership '''after''' upload (using ownCloud Web UI or WebDav serviceprovided services): apache:apache* File permissions '''after''' upload (using ownCloud Web UI or WebDav serviceprovided services): 664 (rw-:rw-:r--)
* '''Required''' directory ownership for ownCloud: apache:users
* '''Required''' directory permissions for ownCloud: 770 (rwx:rwx:---)