Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
storage:smb [2017/01/12 16:24]
eServices Greece
storage:smb [2018/01/09 12:28] (current)
eServices Greece
Line 50: Line 50:
  
 ===== Linux ===== ===== Linux =====
 +
 +==== Required Packages ====
 +<sxh bash>
 +yum install samba-client samba-common cifs-utils
 +</sxh>
  
 ==== fstab ==== ==== fstab ====
 +We will assume your user in the system is **myuser** \\
 Add an entry in your fstab like this: Add an entry in your fstab like this:
-<sxh>//mystorage.cs.esgr.in/backup /home/user/mystorage cifs user=user1234,pass=WMacuuvnnxaKuiwBTrn2,iocharset=utf8 0 0</sxh>+<sxh>//mystorage.cs.esgr.in/backup /home/myuser/mystorage cifs user=user1234,pass=WMacuuvnnxaKuiwBTrn2,iocharset=utf8 0 0</sxh>
  
 === Protecting the Username & Password === === Protecting the Username & Password ===
-in order to avoid the leaking of username & password you can do the following:+In order to avoid the leaking of username & password you can do the following:
  
 Create the file ~/.smbcredentials: Create the file ~/.smbcredentials:
Line 62: Line 68:
  
 Add the following inside the smbcredentials file: Add the following inside the smbcredentials file:
-<sxh>username=msusername +<sxh>username=user1234 
-password=mspassword</sxh>+password=WMacuuvnnxaKuiwBTrn2</sxh>
  
 Change the permissions of the file to be readable only from your id: Change the permissions of the file to be readable only from your id:
Line 69: Line 75:
  
 Change the fstab entry to be like this: Change the fstab entry to be like this:
-<sxh>//mystorage.cs.esgr.in/backup /home/user/mystorage cifs credentials=/home/user/.smbcredentials,iocharset=utf8 0 0</sxh>+<sxh>//mystorage.cs.esgr.in/backup /home/myuser/mystorage cifs credentials=/home/myuser/.smbcredentials,iocharset=utf8 0 0</sxh>