Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
cloudappliance/cifs30 [2018_09_06 09:49] – [ssh as root] dancloudappliance/cifs30 [2018_09_06 21:43] doug
Line 9: Line 9:
 From version 3.0 of the SME Cloud Appliance there is an easier way to expose Windows based CIFS shares from the SME Enterprise File Share and Sync service . This guide steps an Admin through how to enable the CIFS connector (provider) in the SME Appliance. From version 3.0 of the SME Cloud Appliance there is an easier way to expose Windows based CIFS shares from the SME Enterprise File Share and Sync service . This guide steps an Admin through how to enable the CIFS connector (provider) in the SME Appliance.
  
-===== Turn SELinux to permissive mode =====+For CIFS to be available it must be enabled both for the appliance and in the User Package for an organization.
  
-In most cases the File Fabric'CIFS provider can be used without changing the File Fabric's SELinux settings.  Depending on the CIFS implementation, however, it may be necessary to switch SELinux to permissive mode to make the CIFS provider work.  If you have set up the CIFS provider without changing the SELinux configuration and the provider is not working as expected, follow these instructions to set SELinux to permissive mode.+===== Enable CIFS provider for the appliance =====
  
-==== ssh as root ====+  * Login as appladmin in to the appliance 
 +  * Go to Settings -> Site Functionality 
 +  * Toward the bottom of the page under Providers ensure that CIFS is enabled 
 +  * To ensure proper SELinux functionality do not change the default mount point ( /mnt/CIFS )  
 +  * Click Update Options at the bottom of the page
  
-For these commands you will need to su as root+{{::cifsenabled.png |}}
  
-<code>$ ssh smeconfiguser@appliance IP address</code> 
-after establishing ssh session su as root 
- 
-<code>-bash-3.2$ su - root 
-Password:</code> 
-==== SELinux to permissive mode ==== 
- 
-as root execute the following command this will temporarily make SELinux permissive 
- 
-<code>setenforce 0</code> 
- 
-To permanently make SELinux permissive edit ''%%/etc/selinux/config%%'' and change the line 
- 
-<code>SELINUX=enforcing</code> 
- 
-to 
- 
-<code>SELINUX=permissive</code> 
 ===== Enable CIFS provider for the user package ===== ===== Enable CIFS provider for the user package =====
  
   * Login as appladmin in to the appliance   * Login as appladmin in to the appliance
-  * go to User Packages and select the package assigned to the user+  * Go to Menu button in the top right of the screen -> User Packages  
 +  * Select the package assigned to the user/organization
  
 {{:/cloudappliance:cifs30:.:sme_user_packages.png|User Package}} {{:/cloudappliance:cifs30:.:sme_user_packages.png|User Package}}
Line 53: Line 40:
  
 At this point you can use the provider wizard to add a CIFS share. At this point you can use the provider wizard to add a CIFS share.
 +
 +===== Disabling SELinux =====
 +
 +In most cases the File Fabric's CIFS provider can be used without changing the File Fabric's SELinux settings.  Depending on the CIFS implementation, however, it may be necessary to switch SELinux to disabled mode to make the CIFS provider work.  If you have set up the CIFS provider without changing the SELinux configuration and the provider is **not** working as expected, follow these instructions to disable SELinux.
 +
 +==== ssh as root ====
 +
 +For these commands you will need to su as root
 +
 +<code>$ ssh smeconfiguser@appliance IP address</code>
 +after establishing ssh session su as root
 +
 +<code>-bash-3.2$ su - root
 +Password:</code>
 +==== SELinux to disabled mode ====
 +
 +To validate that SELinux is indeed the issue with CIFS, First temporarily set SELinux to permissive mode.  After setting, test the CIFS mapping again.  If the CIFS provider is now successfully uploading and downloading data, proceed with setting SELinux to disabled.
 +
 +<code>setenforce 0</code>
 +
 +To permanently disable SELinux edit ''%%/etc/sysconfig/selinux%%'' and change the line
 +
 +<code>SELINUX=enforcing</code>
 +
 +to
 +
 +<code>SELINUX=disabled</code>
  
 ===== FAQ ===== ===== FAQ =====