Guide to creating a multi-OS shared Linux Cloud Drive with SAMBA using SME

SMEStorage provides a Linux cloud drive that can be mounted on the file system and then used as a normal drive. Samba allows file and print sharing between computers running Windows and computers running Unix. Samba sets up network shares for chosen Unix directories (including all contained subdirectories). These appear to Microsoft Windows users as normal Windows folders accessible via the network.

A SMEStorage Cloud Drive can be set up as a shared drive on a Linux file server allowing you to share it amongst many users on your network. This is useful if you want to share cloud resources from a single user account across many users.

Here is a step by step guide to configuring Samba and SMEStorage Linux drive. First, make sure you have installed Samba. Samba is included with most of the Linux distributions. For this we are using CentOS 5.5.

1. Make a backup of your /etc/samba/smb.conf file and then edit the smb.conf file (Make sure the workgroup is the same as the workgroup windows machines belong to.). It should have the following:

[global]
workgroup = WORKGROUP
encrypt passwords = yes
[smedrive]
comment = smedrive mount
path = /export/sme
read only = no

For further information on Samba configuration file please see http://www.samba.org/samba/docs/using_samba/ch06.html

2. SMEStorage Linux drive uses the open-source Fuse code and the out-of-the-box settings do not allow sharing in this manner. Therefore we need to  create a file /etc/fuse.conf with the following one line content and after we do that the machine needs to be rebooted for it to take effect.

user_allow_other

For further information on Fuse please see http://sourceforge.net/apps/mediawiki/fuse/index.php?title=Fuse.conf

3. Create the directory where we will mount the drive:
# mkdir -p /export/sme
# chmod 1777 /export/sme

4. Add linux and samba users:
# groupadd smeuser
# useradd -m -n -ppassword -gsmeuser smeuser
# smbpasswd -a smeuser

New SMB password:
Retype new SMB password:
Added user smeuser.
#
5. In SMEStorage Client select File →Advanced and check share your drive check box. Mount the SMEStorage Linux drive make sure the mount folder is /export/sme. By default SMEStorage mounts with the “allow_other” option enabled.







6. Start the samba services

# service smb start

Starting SMB services:                                     [  OK  ]

Starting NMB services:                                     [  OK  ]

#

7. Test the samba services.

8. If everything has gone correctly so far you can now mount the shared drive in windows and from the Finder in Mac OSX (using ‘Connect to Server->Go’) and any platform that supports SMB protocol

For windows make sure the workgroup is the same as defined in smb.conf file and you can ping the Linux machine.

9) Open a command prompt and run the command

net use t: file://localhost/smb/::172.16.195.161:smedrive /user:smeuser password

10. Open explorer you will see the drive appear in explorer







Print Friendly, PDF & Email
Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather
The following two tabs change content below.
The Leading Enterprise File Fabric

Latest posts by admin (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *