Difference between revisions of "Storage and file sharing"

From Amahi Wiki
Jump to: navigation, search
 
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Your HDA shares files on your local network. Access to the shared files is through the share  <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 what you should see when using the default settings and there are two users in the system:
+
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.
  
[[Image:file-sharing.png|frameless]]
+
The second step is to create the shares (another term for filing folders) to put the files.
  
= Initial Install =
+
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.
  
While we build a new facility to manage shares, we ask that you configure file sharing (otherwise known as SAMBA) via the Fedora SAMBA configuration utility, which is a desktop utility. It's available at the desktop under
+
== 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
  
The following are '''critical things''' to do to make it work:
+
You can always edit a user by clicking on their row in the Users table.
  
* create a Linux user for each user you want to access the shares
+
== Step 2: Create Shares ==
* create a SAMBA user '''for each user''' you want to access the shares.
+
* Click on the Shares Tab
* associate one with the other in the SAMBA config tool
+
:'''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
  
= Default Shares (Shared Folders) =
+
== 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.
  
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.
 
  
= Managing User Permissions and Shares =
+
[[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.
  
User and share administration is performed (for the time being) directly using the Samba Server Configuration panel in Fedora. (In the future this functionality will be controlled through the setup area in your HDA.)
+
== 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>.
  
To get there, you have to be at the desktop of your HDA (either directly or through [[VNC]]), and go to System -> Administration -> Samba. Note: it may be under System -> Administration -> Samba, if you have more server services installed.
+
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:
 
 
Here is what it looks like in my case.
 
  
[[Image:samba-setup.png|frameless]]
+
[[File:file-sharing.png|600]]
  
You can then configure your shares directly and configure the samba users
+
Also see [[Map Shares in Windows]] for assigning shares as network drives.
  
Tips:
+
=== Mac OSX ===
 +
Refer to [[SharingToMacOSX|sharing to Mac OSX]] page for details.
  
* Samba users are separate from Linux users (System -> Administration -> Users and Groups)
+
=== Linux ===
* However, each samba user must be mapped into a Linux user
+
See the [[SharingToLinux|sharing to Linux]] page for more information.
* Standard Linux permissions apply to samba users, except that samba can restrict for read-only and/or visibility of a share.
 
* You may have to create user groups under  Linux to manage shared spaces.
 

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.