Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
storage:smb [2017/01/12 15:37] eServices Greece created |
storage:smb [2018/01/09 12:28] (current) eServices Greece |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== SMB/SAMBA ====== | ====== SMB/SAMBA ====== | ||
+ | |||
+ | ===== Windows ===== | ||
+ | First you will need to get your storage address and credentials from your account in our members area. Then you have many options of accessing your storage over SMB. | ||
+ | |||
+ | For the following examples we will assume the following: | ||
+ | * Storage Address: **mystorage.cs.esgr.in** | ||
+ | * Username: **user1234** | ||
+ | * Password: **WMacuuvnnxaKuiwBTrn2** | ||
+ | |||
+ | ==== File Explorer ==== | ||
+ | * Open an instance of **File Explorer** from your desktop or start menu | ||
+ | * Click on the **Computer Tab** to make it active | ||
+ | * Click on **Map Network Drive** | ||
+ | * Select the Drive Letter you would like to use | ||
+ | * in **Folder** type: | ||
+ | * **\\mystorage.cs.esgr.in\backup** | ||
+ | * If you want the drive to reconnect everytime you restart Windows Select **Reconnect at sign-in** | ||
+ | * Click on **Connect using different credentials** | ||
+ | * Click on **Finish** | ||
+ | |||
+ | Windows will ask you for your credentials (Username and Password) and after you enter them correctly it will open your cloud storage in File Explorer. | ||
+ | <WRAP group> | ||
+ | <WRAP half column> | ||
+ | {{ : | ||
+ | {{ : | ||
+ | </ | ||
+ | <WRAP half column> | ||
+ | {{ : | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Disconnect Network Drive ==== | ||
+ | In order to disconnect your network drive: | ||
+ | * Open a **File Explorer** | ||
+ | * Find the Network Drive in the list and right click on it | ||
+ | * Click on **Disconnect** | ||
+ | {{ : | ||
+ | |||
+ | ===== Command Line ===== | ||
+ | In a console that has administrative permissions: | ||
+ | |||
+ | ==== Mount as Network Drive ==== | ||
+ | < | ||
+ | This will mount the cloud storage on Drive Letter Q: | ||
+ | |||
+ | ==== Mount under UNC Path ==== | ||
+ | < | ||
+ | This will mount the cloud storage in a folder called // | ||
+ | |||
+ | ===== Linux ===== | ||
+ | |||
+ | ==== Required Packages ==== | ||
+ | <sxh bash> | ||
+ | yum install samba-client samba-common cifs-utils | ||
+ | </ | ||
+ | |||
+ | ==== fstab ==== | ||
+ | We will assume your user in the system is **myuser** \\ | ||
+ | Add an entry in your fstab like this: | ||
+ | < | ||
+ | |||
+ | === Protecting the Username & Password === | ||
+ | In order to avoid the leaking of username & password you can do the following: | ||
+ | |||
+ | Create the file ~/ | ||
+ | < | ||
+ | |||
+ | Add the following inside the smbcredentials file: | ||
+ | < | ||
+ | password=WMacuuvnnxaKuiwBTrn2</ | ||
+ | |||
+ | Change the permissions of the file to be readable only from your id: | ||
+ | < | ||
+ | |||
+ | Change the fstab entry to be like this: | ||
+ | < | ||
+ | |||
+ |