...
Finder (Go -> Connect to Server...)
The username will be domain\username (see screenshots below)
Code Block language text smb://mediaflux.researchsoftware.unimelb.edu.au/proj-testproject-1128.3.12
Terminal - using the command-line mount command, the syntax is of the following form (including the domain, e.g. unimelb and user e.g. mfuser )
Code Block language bash mount -t smbfs //unimelb\;sclaus@mediaflux.researchsoftware.unimelb.edu.au/proj-testproject-1128.3.12 /Users/mfuser/smb_mount
where the last part is an empty directory you have created on you computer to receive the SMB mount point.
Terminal with a secure identity token. Macos uses the following syntax for connecting to SMB volumes on the CLI:
mount -t smbfs //[domain;]user[:password]@server[/share] path
Note that the semicolon character will be interpreted by the zsh shell, so we need to surround the path with quotes. When using a token, we want the password to be blank, so we specify the : with nothing following it. For example:
- domain: token
- replace <your token code here> with your actual secure identity token
- replace proj-testproject-1128.3.12 with your actual project
- /Users/mfuser/smb_mount with the location of your mount point (where the files on the server will appear). You may need to create this with the mkdir command.
Example:
Code Block language bash mount -t smbfs '//token;<your token code here>:@mediaflux.researchsoftware.unimelb.edu.au/proj-testproject-1128.3.12' /Users/mfuser/smb_mount
...
Using the smbclient command (similar to an FTP client), the syntax is of the following form (including the domain, e.g. unimelb and user, e.g. mfuser):
Code Block language bash smbclient //mediaflux.researchsoftware.unimelb.edu.au/proj-test-project-1128.3.12 -W unimelb -U mfuser
Using GNOME Files (AKA Nautilus): Other Locations -> Enter Server Address...
Code Block language text smb://mediaflux.researchsoftware.unimelb.edu.au/proj-testproject-1128.3.12
This will prompt you for your domain (generally unimelb or student), username and password.
Using the command-line mount command the syntax is of the following form (including the domain, e.g. unimelb and user e.g. mfuser ).
Code Block language bash mkdir ~/mnt sudo apt install cifs-utils # provides the cifs mount helper (mount.cifs) sudo mount -t cifs -ouser=mfuser,domain=unimelb,uid=$UID,gid=$(id -g) //mediaflux.researchsoftware.unimelb.edu.au/proj-testproject-1128.3.12 $HOME/mnt
Note: the uid, gid, file_mode and dir_mode options will control the local permissions on the files and directories inside the mount point. In the example above, the uid and gid are set to the user who is running the mount command, but this may not work if you're mounting with one user and need to access the files as another user. See the Users and Groups page on ArchWiki and use the man mount.cifs command on your local machine for more information.
If you wish to use Kerberos authentication from the command line, you will need some additional software:
Code Block language bash sudo apt install krb5-user keyutils
Then you can log in using the kinit command, and then pass the cruid to the mount command instead of specifying the username, domain and password.
Code Block language bash mkdir ~/mnt kinit mfuser@UNIMELB.EDU.AU sudo mount -t cifs -o cruid=$USER,sec=krb5,uid=$UID,gid=$(id -g) //mediaflux-test.researchsoftware.unimelb.edu.au/proj-test-1247.5.1 $HOME/mnt
If you are using a secure identity token
Code Block language bash mkdir ~/mnt sudo apt install cifs-utils # provides the cifs mount helper (mount.cifs) sudo mount -t cifs -ouser=<your token string>,domain=token,password='',uid=$UID,gid=$(id -g) //mediaflux.researchsoftware.unimelb.edu.au/proj-testproject-1128.3.12 $HOME/mnt
...