Difference between revisions of "Storage and file sharing"

From Amahi Wiki
Jump to: navigation, search
 
(31 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Your HDA shares files as <code><nowiki>\\hda</nowiki></code>.
+
All file sharing functionality in the Amahi HDA is now managed through the web browser interface found at '''[[Setup|<nowiki>http://setup</nowiki>]]'''
  
Note that you have to input <code><nowiki>\\hda</nowiki></code> in the file browser or other places where files are requested, not in the Internet browser. This is w
+
The first step is to create "users" who will be accessing the file shares. For example, one user for the wife and one for each of the kids.
hat you should see when using the default settings and there are two users in the system:
 
  
[[Image:file-sharing.png|frameless]]
+
The second step is to create the shares (another term for filing folders) to put the files.
  
= Default Shares =
+
The third step is to "Match the Shares with Users," that is, say which users save files or read from which shares.
  
By default your HDA comes with the following shares preinstalled: pictures, music, movies, files and books, in addition to one share per user "home directory" and a printers and faxes directory. To add more shares, go to the setup area in your HDA.
+
Actually accessing your shares is the last step.
  
= User Permissions =
+
== Step 1: Create Users ==
 +
* Click on the Users Tab
 +
* At the bottom of the page click the "New User"
 +
* Enter the information for the new user and click the "Create" button
  
User and share administration is performed for the time being directly through the Samba Server Configuration panel.
+
You can always edit a user by clicking on their row in the Users table.
  
To get there, you have to be at the desktop (either directly or through [[VNC]]), and go to System -> Administration -> Samba. Note that is may be under System -> Administration -> Server Settings -> Samba, if you have more server services installed.
+
== Step 2: Create Shares ==
 +
* Click on the Shares Tab
 +
:'''NOTE:''' By default, the system creates some common shares when it is installed (Books, Docs, Music, Pictures)
 +
* At the bottom of the page click "New Share"
 +
** '''Share Name'' is the name that you will see to access the share
 +
** '''Path Name''' is actually where the files will be stored (no need to change this manually unless you are 'hacking')
 +
** '''Visible''' indicates if users can see the share (if not checked the share is hidden)
 +
** '''Read Only'' means that users cannot save things in the share
 +
* Click the "Create" to create the share
  
Here is what it looks like in my case.
+
== Step 3: Match Shares with Users ==
 +
* Click on the share you want to match with users (I will use the Docs share for this example)
 +
* Visible defines if the share can be seen (without users having to manually enter its name)
 +
* By default the share is accessible by all users - I want it to be accessible to just one user. I uncheck the "All Users" check box. Now I can see the access rules for each user on the HDA.
  
[[Image:samba-setup.png|frameless]]
 
  
You can then configure your shares directly and configure the samba users
+
[[File:SS1-Shares.PNG|750px]]
 +
* Simply mark the "Access" column next to each user you want to be able to access the share
 +
* Mark the "Write" column for those user you want to be able to save files in the share.
  
Tips:
+
== Accessing your Shares ==
 +
=== Windows ===
 +
Your HDA shares files on your local network. Access to the shared files is through the share  <code><nowiki>\\hda</nowiki></code>.
  
- Samba users are separate from Linux users (System -> Administration -> Users and Groups)
+
Note that you have to input <code><nowiki>\\hda</nowiki></code> in the file browser or other places where files are requested, not in the Internet browser. This is what you should see when using the default settings and there are two users in the system:
- However, each samba user must be mapped into a Linux user
+
 
- Standard Linux permissions apply to samba users, except that samba can restrict for read-only and/or visibility of a share.
+
[[File:file-sharing.png|600]]
- You may have to create user groups under  Linux to manage shared spaces.
+
 
 +
Also see [[Map Shares in Windows]] for assigning shares as network drives.
 +
 
 +
=== Mac OSX ===
 +
Refer to [[SharingToMacOSX|sharing to Mac OSX]] page for details.
 +
 
 +
=== Linux ===
 +
See the [[SharingToLinux|sharing to Linux]] page for more information.

Latest revision as of 00:59, 25 October 2018

All file sharing functionality in the Amahi HDA is now managed through the web browser interface found at http://setup

The first step is to create "users" who will be accessing the file shares. For example, one user for the wife and one for each of the kids.

The second step is to create the shares (another term for filing folders) to put the files.

The third step is to "Match the Shares with Users," that is, say which users save files or read from which shares.

Actually accessing your shares is the last step.

Step 1: Create Users

  • Click on the Users Tab
  • At the bottom of the page click the "New User"
  • Enter the information for the new user and click the "Create" button

You can always edit a user by clicking on their row in the Users table.

Step 2: Create Shares

  • Click on the Shares Tab
NOTE: By default, the system creates some common shares when it is installed (Books, Docs, Music, Pictures)
  • At the bottom of the page click "New Share"
    • 'Share Name is the name that you will see to access the share
    • Path Name is actually where the files will be stored (no need to change this manually unless you are 'hacking')
    • Visible indicates if users can see the share (if not checked the share is hidden)
    • 'Read Only means that users cannot save things in the share
  • Click the "Create" to create the share

Step 3: Match Shares with Users

  • Click on the share you want to match with users (I will use the Docs share for this example)
  • Visible defines if the share can be seen (without users having to manually enter its name)
  • By default the share is accessible by all users - I want it to be accessible to just one user. I uncheck the "All Users" check box. Now I can see the access rules for each user on the HDA.


SS1-Shares.PNG

  • Simply mark the "Access" column next to each user you want to be able to access the share
  • Mark the "Write" column for those user you want to be able to save files in the share.

Accessing your Shares

Windows

Your HDA shares files on your local network. Access to the shared files is through the share \\hda.

Note that you have to input \\hda in the file browser or other places where files are requested, not in the Internet browser. This is what you should see when using the default settings and there are two users in the system:

600

Also see Map Shares in Windows for assigning shares as network drives.

Mac OSX

Refer to sharing to Mac OSX page for details.

Linux

See the sharing to Linux page for more information.