Difference between revisions of "Storage and file sharing"

From Amahi Wiki
Jump to: navigation, search
Line 1: Line 1:
 
All file sharing functionality in the Amahi HDA is now managed through the web browser interface found at http://setup
 
All file sharing functionality in the Amahi HDA is now managed through the web browser interface found at http://setup
  
''' DO NOT USE the operating system GUI programs to manage Linux or Samba users nor Samba shares. If you do, some of them may not work well, as it will confuse the Amahi setup interface and it may override them.'''
+
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.
  
'''NOTE: This page is kept for historic purposes only'''
+
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.
  
Your HDA shares files on your local network. Access to the shared files is through the share  <code><nowiki>\\hda</nowiki></code>.
+
To get started goto your HDA setup pages at http://setup
 +
You will be using the two menus highlighted below:
  
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:
+
[[Image:User_share.gif|frameless]]
  
[[Image:file-sharing.png|frameless]]
 
  
= Initial Install =
 
  
 +
= 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
  
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 the '''System''' menu, '''Administration''' option, '''Samba''' setting.
+
You can always edit a user by clicking on their row in the Users table.
  
The following are '''critical things''' to do to make it work:
+
= 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
  
* create a Linux user for each user you want to access the shares
+
= Step 3: Match Shares with Users =
* create a SAMBA user '''for each user''' you want to access the shares.
+
* Click on the share you want to match with users (I will use the Docs share for this example)
* associate one with the other in the SAMBA config tool
+
* Visible defines if the share can be seen (without users having to manually enter its name)
* enable '''Share''' as Authentication Mode in the Server Settings -> Security tab.
+
* 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.
  
= Default Shares (Shared Folders) =
+
[[Image:User_rghts.gif]]
  
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.  
+
* 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.
  
= Managing User Permissions and Shares =
 
  
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 =
  
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.
+
Your HDA shares files on your local network. Access to the shared files is through the share  <code><nowiki>\\hda</nowiki></code>.
  
Here is what it looks like in my case.
+
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:
  
[[Image:samba-setup.png|frameless]]
+
[[Image:file-sharing.png|frameless]]
 
 
You can then configure your shares directly and configure the samba users
 
 
 
Tips:
 
 
 
* Samba users are separate from Linux users (System -> Administration -> Users and Groups)
 
* 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.
 
* You may have to create user groups under  Linux to manage shared spaces.
 
 
 
= Server Settings =
 
 
 
After all users are configured, then go to Preferences -> Server Settings.
 
 
 
In it go to the Security tab. In the Authentication Mode selector, select '''Share'''. Make sure Encrypted Passwords is yes. Your Guest Account may be your main user, though I believe it is not necessary.
 
 
 
 
 
[[Category: Services]]
 

Revision as of 04:26, 26 June 2009

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.

To get started goto your HDA setup pages at http://setup You will be using the two menus highlighted below:

User share.gif


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.

User rghts.gif

  • 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

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:

File-sharing.png