Mount macOS & Windows shares on centOS

Mount macOS & Windows shares on centOS e.g. in case you need to save backups on a network share.

Step-by-step guide

  1. For Linux to Windows:
    1. mount -t cifs -o username=yourusername,password=yourpassword //yourIPAdress/yoursharedfolder /yourfoldertomount
  2. For  Linux to macOS
    1. sudo yum install cifs-utils 
    2. mount -t cifs //yourIPAddress/yoursharedfolder /yourfoldertomount -o username=yourusername,password=yourpassword,nounix,sec=ntlmssp


Create a folder and share it then replace this value "yourfoldertomount" with the right shared folder name.