Map SMB and CIFS Shares
SMB or CIFS shares are commonly used under Windows to access network resources, i.e., files on a server or networked printers. The share is defined by a server name and a share or resource name. The typical notation for a share is written as\\server\share
.
Windows
Open the Map Network Drive window:- For Windows 7 select Map Network Drive… in the context menu (right click) over My Computer
- For Windows 8 and 10 open an Explorer, select This PC or Computer in the navigation on the left and click on the Map network drive icon in the toolbar.
\\<server>\<share>
Tick Reconnect at logon if you intend to use this share regularly.
For windows computers that are not joined to the Active Directory you also want to click on Connect using a different user name and make sure that you use D\ followed by your IAM login and your mail service password for authentication.
Click on Finish to complete the operation.
macOS
To connect to a SMB-Share you need to open the Connect To Server window. This Dialog can be reached in the Finder menu > Go > Connect To Server…, or by pressing the ⌘ + K. In the Connect To Server Dialog enter the share you like to access as follows:
smb://<server>/<share>
Please use D\<your ETH user name> as Name and your IAM mail service password for Password. Tick Remember this password in my keychain if you want to use this share regularly before clicking Connect.
Linux
Graphical (Gnome)
When using the Gnome desktop open the Browse Network window in the Places menu and click on Connect to Server in the left side navigation. Enter the share you like to access as follows:
smb://<server>/<share>
When asked for authentication use D\<your ETH user name> and your IAM mail service password.
Commandline
On the command line (root required) The following example is for localuser mo with local group mo, nethz user baumanmo, for isg-project share on server isg.fs.inf.ethz.ch. Please note that there is no remote group and the primary gid of the remote user will be used on the remote side.mount -t cifs //isg.fs.inf.ethz.ch/isg-project /mnt -o domain=d,username=baumanmo,uid=mo,gid=mo,file_mode=0660,dir_mode=0770