This recipe is applicable to version 2.6 of the SME Appliance and below. Please use the new CIFS wizard if you are using version 3.0+ of the SME Appliance.
You can mount Windows shared folders on the SME EFSS appliance as a CIFS share and then access the Windows shared folders via the SME appliance through the web and all client Apps.
This recipe will walk you through the setup using standard linux tools samba and autofs for reference please see: http://www.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html http://www.autofs.org/
For these commands you will need to su as root
$ ssh smeconfiguser@appliance IP address
After login su as root
-bash-3.2$ su - root
This step is only necessary for appliance versions 2.4.1 and earlier.
yum install samba-client samba-common
adduser -b /mnt/ -s /sbin/nologin cifsshare
set the password
A new home directory /mnt/cifsshare will be created where the CIFS share will be mounted.
/usr/sbin/setsebool -P allow_ftpd_full_access on /usr/sbin/setsebool -P allow_ftpd_use_cifs on
Edit the file /etc/auto.master file add a line like:
Create a new file /etc/auto.cifs and add a line like
cifsshare -fstype=cifs,rw,noperm,credentials=/root/cifs.txt ://[remote_server]/[remote_share_name]
cifsshare -fstype=cifs,rw,noperm,credentials=/root/cifs.txt ://WIN8/Documents
Note in the path you are using / instead of \. Also make sure you can ping your CIFS server if you are entering the IP address. In case you are entering hostname edit the /etc/hosts file and add the server name and IP address
under /root create a file /cifs.txt and enter the credentials to access the share
/sbin/service autofs restart /sbin/chkconfig --levels 235 autofs on
Login to your SME account and from the dashboard add a new FTP provider
with the following settings:
FTP/FTPS/SFTP account login: the user you created in step
FTP/FTPS/SFTP account password: the password you set in step
FTP/FTPS/SFTP server host: 127.0.0.1
FTP/FTPS/SFTP server port: 2001
FTP/FTPS/SFTP home path: / The provider will automatically sync and after a while you will see all the files from your shared folder