Difference between revisions of "Samba Access"

From UFRC
Jump to navigation Jump to search
m
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Storage]]
+
[[Category:Storage]][[Category:Transfer Data]]
== Connecting to the Samba server  ==
 
  
Note that due to University networking firewalls, Samba access is only available while on the University of Florida network (either a UF network, or connected with the [http://vpn.ufl.edu UF VPN] )
+
Samba is a Linux server that provides remote filesystem access using SMB/CIFS protocol and is most commonly used by UFRC clients for drive mapping to HiPerGator filesystems from their Microsoft Windows, MacOS, and Linux desktops.
=== Mac OS X ===
 
  
# Bring the Finder to the front
+
'''Notice:''' Samba access is only available while on the University of Florida network. You must be on campus or connected to the [http://vpn.ufl.edu UF VPN] to mount HiPerGator filesystems as network drive shares.
# Select "Connect to Server..." from the "Go" menu or type Command+K
 
# Enter smb://cifs.rc.ufl.edu
 
# Click "+" button to add to favorites (optional)
 
# Connect (use GatorLink user name and password)
 
  
'''Note:''' There is a known issue with the CIFS client in Mac Finder. The Finder software in current version of MacOS does not have a refresh button to update contents for any changes after the connection is established and disconnecting/reconnecting do not refresh CIFS contents either. A manual solution to force refreshing in Mac Finder can be found on the web, for example:
+
The network drive server name for /blue and /orange is <code>exasmb.rc.ufl.edu</code>
  
http://apple.stackexchange.com/questions/49543/is-there-a-way-to-refresh-a-finder-file-listing
+
The network drive server name for /home is <code>cifs.rc.ufl.edu</code>.
  
http://www.shasam.net/blog/2007/3/20/mac-osx-finder-refresh.html
+
=Mapping Drive Shares=
 +
'''Note:''' for automatically mounted filesystem paths like /blue/group or /orange/project use the full path when mounting a samba share to initiate the automounting. e.g. on Windows type the full path into the Windows Explorer Path bar - '\\exasmb.rc.ufl.edu\blue\mygroup\mydir'.
  
=== Linux ===
+
== Windows ==
'''Please note, at this time Linux client SAMBA access to /orange is not supported.  Please contact support.rc.ufl.edu for more information.'''
+
If you are logged into a managed device with UFAD credentials enter
==== GNOME Desktop ====
+
<pre>
If you are using the GNOME desktop, there will be a Menu titled "Places" in the top, left corner of your screen. Click on it to open the menu, and select the option "Connect to Server...". That will open a dialog where you can select the service type, server, etc. Fill out the dialog like so:
+
\\exasmb.rc.ufl.edu
 +
</pre>
 +
into the search field in the Start Menu or the Windows Explorer location bar and browse the available folders.
 +
** For /home, the server name is \\cifs.rc.ufl.edu. You cannot browse the home area. You MUST enter the full path to your home share: \\cifs.rc.ufl.edu\home\<username>
  
# Service type: Windows Share
+
If you are not logged with UFAD credentials i.e. are using a local Windows account or some such a login box will appear for a username and password. Enter your UFAD credentials to be connected to the system. Precede your username with "UFAD\".
# Server: cifs.rc.ufl.edu
 
# Share: ufrc (for /ufrc), or homes (for /home)
 
# Domain: UFAD
 
# Username: your Gatorlink user name
 
# Password: your Gatorlink password
 
  
==== Command Line Prompt ====
+
For example, user "jsmith" would enter the following username
To mount from the Linux shell prompt, you can install the cifs-utils package (yum or apt-get) and run a command such as the following (you will need root access).
 
  
<source lang=bash>
+
<pre>
mount -t cifs -v -o user=<GatorLink Username>,domain=ufad,sec=ntlmssp,vers=3.0 <remote share> <local mount point>
+
UFAD\jsmith
</source>
+
</pre>
  
where <GatorLink Username> is your GatorLink username, <remote share> is the remote folder you wish to mount, and <local mount point> is the local directory on which to mount the remote share (i.e. directory).
+
'''Note:''' If contents of the Samba folders change after the connection is established, you may need to click on the refresh button in Windows Explorer or press 'F5' to see the changes.
  
'''Note:''' that you will be asked to enter your Gatorlink password
+
==MacOS X==
 +
# Bring the Finder to the front
 +
# Select "Connect to Server..." from the "Go" menu or press <code>Command+K</code>
 +
# Enter smb://exasmb.rc.ufl.edu
 +
# Click "+" button to add to favorites (optional)
 +
# Connect (use GatorLink user name and password)
  
'''SMB Version Note:'''If the SMB dialect 3.0 does not work with an older Linux system please use vers=2.1 or vers=1.0 whichever matches your system.
+
'''Note:''' There is a known issue with the CIFS client in Mac Finder. The Finder software in current version of MacOS does not have a refresh button to update contents for any changes after the connection is established and disconnecting/reconnecting does not refresh CIFS contents either. A manual solution to force refreshing in Mac Finder can be found on the web [http://apple.stackexchange.com/questions/49543/is-there-a-way-to-refresh-a-finder-file-listing], [http://www.shasam.net/blog/2007/3/20/mac-osx-finder-refresh.html].
===== Examples =====
 
====== /ufrc ======
 
<source lang=bash>
 
# mount -t cifs -v -o user=joe.smith,domain=ufad,sec=ntlmssp,vers=3.0 //cifs.rc.ufl.edu/ufrc /mnt/ufrc
 
</source>
 
  
====== /home ======
+
== Linux ==
<source lang=bash>
+
=== GNOME Desktop ===
# mount -t cifs -v -o user=joe.smith,domain=ufad,sec=ntlmssp,vers=2.1 //cifs.rc.ufl.edu/home /mnt/home
+
Click on a "Places" Menu at the top-left corner of the screen. Select the "Connect to Server..." option to open a dialog where you can select the service type, server, etc. Fill out the dialog as shown below:
</source>
 
  
=== Windows ===
+
# Service type: Windows Share
 +
# Server: exasmb.rc.ufl.edu
 +
# Share: blue for /blue, homes for /home, or orange for /orange filesystem
 +
# Domain: UFAD
 +
# Username: your Gatorlink user name
 +
# Password: your Gatorlink password
  
The Research Computing has a samba server located at cifs.rc.ufl.edu.
+
=== Command Line ===
====UFAD Users====
+
To mount from the Linux shell prompt, install the cifs-utils package (yum or apt-get) and run
To connect to the available shares click on your '''Start''' menu.  Where the search entry area is located enter
+
 
<pre>
+
sudo mount -t cifs -v -o user=<GatorLink Username>,domain=ufad,sec=ntlmssp,vers=3.0 <remote share>/<group> <local mount point>
\\cifs.rc.ufl.edu
 
</pre>
 
This should be all you have to do. Since you are already logged into a machine with UFAD credentials, these credentials will be used by the Samba server as well, and you should see the folders available to you.
 
====Non-UFAD Users====
 
To connect to the available shares click on you '''Start''' menu. Where the search entry area is located enter
 
<pre>
 
\\cifs.rc.ufl.edu
 
</pre>
 
  
A login box will appear for a username and password. Enter these and you should be connected to the system.  
+
where <GatorLink Username> is your GatorLink username, <remote share> is the remote folder you wish to mount, <group> is the group directory you wish to access, and <local mount point> is the local directory on which to mount the remote share (i.e. directory). For '/home', <remote share> will be //cifs.rc.ufl.edu/home.
  
'''Note:''' Since you are currently logging into the UF Active Directory (UFAD) domain, you will need to precede your username with "UFAD\". So, if your username were normally "jsmith", you would instead enter
+
You will be asked to enter your Gatorlink password.
  
<pre>
+
If the SMB dialect 3.0 does not work with an older Linux system please use vers=2.1 or vers=1.0 whichever matches your system.
UFAD\jsmith
 
</pre>
 
  
'''Note:''' If contents of the Samba folders change after the connection is established, you may need to click on the refresh button of your file browser to refresh its contents for the changes.
+
====Examples====
  
==Connecting to Long-term and Replicated Long-term Storage==
+
* /blue
To connect to your long-term or replicated long-term storage, you need to add the full path to the connection string.
+
mount -t cifs -v -o user=joe.smith,domain=ufad,sec=ntlmssp,vers=3.0 //exasmb.rc.ufl.edu/blue/smith /mnt/blue/smith
  
For Windows, you would typically use:
+
* /orange
<pre>
+
  mount -t cifs -v -o user=joe.smith,domain=ufad,sec=ntlmssp,vers=3.0 //exasmb.rc.ufl.edu/orange/smith /mnt/orange/smith
  \\cifs.rc.ufl.edu\rlts\group
 
</pre>
 
to access replicated long-term storage. Or
 
<pre>
 
\\cifs.rc.ufl.edu\ufrc\group
 
</pre>
 
to access non-replicated long-term storage.
 
  
For Mac, you would use:
+
* /home
<pre>
+
  mount -t cifs -v -o user=joe.smith,domain=ufad,sec=ntlmssp,vers=2.1 //cifs.rc.ufl.edu/home/jsmith /mnt/home
  smb://cifs.rc.ufl.edu/rlts/group
 
</pre>
 
and
 
<pre>
 
smb://cifs.rc.ufl.edu/ufrc/group
 
</pre>
 
respectively.
 

Revision as of 18:32, 2 August 2021


Samba is a Linux server that provides remote filesystem access using SMB/CIFS protocol and is most commonly used by UFRC clients for drive mapping to HiPerGator filesystems from their Microsoft Windows, MacOS, and Linux desktops.

Notice: Samba access is only available while on the University of Florida network. You must be on campus or connected to the UF VPN to mount HiPerGator filesystems as network drive shares.

The network drive server name for /blue and /orange is exasmb.rc.ufl.edu

The network drive server name for /home is cifs.rc.ufl.edu.

Mapping Drive Shares

Note: for automatically mounted filesystem paths like /blue/group or /orange/project use the full path when mounting a samba share to initiate the automounting. e.g. on Windows type the full path into the Windows Explorer Path bar - '\\exasmb.rc.ufl.edu\blue\mygroup\mydir'.

Windows

If you are logged into a managed device with UFAD credentials enter

\\exasmb.rc.ufl.edu

into the search field in the Start Menu or the Windows Explorer location bar and browse the available folders.

    • For /home, the server name is \\cifs.rc.ufl.edu. You cannot browse the home area. You MUST enter the full path to your home share: \\cifs.rc.ufl.edu\home\<username>

If you are not logged with UFAD credentials i.e. are using a local Windows account or some such a login box will appear for a username and password. Enter your UFAD credentials to be connected to the system. Precede your username with "UFAD\".

For example, user "jsmith" would enter the following username

 UFAD\jsmith

Note: If contents of the Samba folders change after the connection is established, you may need to click on the refresh button in Windows Explorer or press 'F5' to see the changes.

MacOS X

  1. Bring the Finder to the front
  2. Select "Connect to Server..." from the "Go" menu or press Command+K
  3. Enter smb://exasmb.rc.ufl.edu
  4. Click "+" button to add to favorites (optional)
  5. Connect (use GatorLink user name and password)

Note: There is a known issue with the CIFS client in Mac Finder. The Finder software in current version of MacOS does not have a refresh button to update contents for any changes after the connection is established and disconnecting/reconnecting does not refresh CIFS contents either. A manual solution to force refreshing in Mac Finder can be found on the web [1], [2].

Linux

GNOME Desktop

Click on a "Places" Menu at the top-left corner of the screen. Select the "Connect to Server..." option to open a dialog where you can select the service type, server, etc. Fill out the dialog as shown below:

  1. Service type: Windows Share
  2. Server: exasmb.rc.ufl.edu
  3. Share: blue for /blue, homes for /home, or orange for /orange filesystem
  4. Domain: UFAD
  5. Username: your Gatorlink user name
  6. Password: your Gatorlink password

Command Line

To mount from the Linux shell prompt, install the cifs-utils package (yum or apt-get) and run

sudo mount -t cifs -v -o user=<GatorLink Username>,domain=ufad,sec=ntlmssp,vers=3.0 <remote share>/<group> <local mount point>

where <GatorLink Username> is your GatorLink username, <remote share> is the remote folder you wish to mount, <group> is the group directory you wish to access, and <local mount point> is the local directory on which to mount the remote share (i.e. directory). For '/home', <remote share> will be //cifs.rc.ufl.edu/home.

You will be asked to enter your Gatorlink password.

If the SMB dialect 3.0 does not work with an older Linux system please use vers=2.1 or vers=1.0 whichever matches your system.

Examples

  • /blue
mount -t cifs -v -o user=joe.smith,domain=ufad,sec=ntlmssp,vers=3.0 //exasmb.rc.ufl.edu/blue/smith /mnt/blue/smith
  • /orange
mount -t cifs -v -o user=joe.smith,domain=ufad,sec=ntlmssp,vers=3.0 //exasmb.rc.ufl.edu/orange/smith /mnt/orange/smith
  • /home
mount -t cifs -v -o user=joe.smith,domain=ufad,sec=ntlmssp,vers=2.1 //cifs.rc.ufl.edu/home/jsmith /mnt/home