Difference between revisions of "Sds-hd CIFS"

From bwHPC Wiki
Jump to: navigation, search
(Changed redirect target from Pagename to SDS@hd)
(Tag: Redirect target changed)
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
#REDIRECT [[SDS@hd]]
<!--
 
<H1> Using SMB/CIFS for UNIX client </H1>
 
 
<H2>SMB Client</H2>
 
 
'''Attention:''' To access data served by bwFileStorage via '''smbclient''', You need a '''''Service Password'''''. Please set your '' '''Service Password''' '' under following site: https://bwidm.scc.kit.edu.
 
<br>
 
A UNIX like operating system needs a CIFS client to use a share. CIFS clients are part of Samba implementation for Linux and other UNIX like operating systems (http://www.samba.org) <br><br>
 
'''Attention:''' Posix style file commands (for instance chmod) must not be applied on files on a CIFS share. This may revoke sharing and Access Lists (ACLs), steering the access to the files.
 
<br><br>
 
'''Example:'''
 
To list the files in a SMB share, use the program smbclient.
 
<pre>
 
smbclient -L bwfilestorage.lsdf.kit.edu -U 'bwfilestorage.lsdf.kit.edu\ka_xy1234'
 
Enter bwfilestorage.lsdf.kit.edu\ka_xy1234's password:
 
</pre>
 
 
The program allows You to access the files with a FTP like tool in an interactive shell.
 
<pre>
 
>smbclient //bwfilestorage.lsdf.kit.edu/ka -U 'bwfilestorage.lsdf.kit.edu\ka_xy1234'
 
 
Enter bwfilestorage.lsdf.kit.edu\ka_xy1234's password:
 
Domain=[LSDF.KIT.EDU] OS=[Unix] Server=[IBM NAS]
 
smb:\> ls
 
. D 0 Tue Jan 7 13:00:03 2014
 
.. D 0 Fri Aug 23 22:41:52 2013
 
ka_aifb D 0 Thu Jul 11 21:04:09 2013
 
ka_scc D 0 Tue Jul 2 22:36:18 2013
 
ka_aph D 0 Thu Aug 8 08:17:32 2013
 
ka_bgu D 0 Sun Aug 25 17:58:16 2013
 
......
 
.snapshots DHR 0 Thu Jan 1 01:00:00 1970
 
65535 blocks of size 33553920.
 
65535 blocks available
 
smb:\
 
</pre>
 
 
<h2>Mount a Share</H2>
 
 
'''Attention:''' To access data served by bwFileStorage via CIFS protocol, You need a '''''Service Password'''''. Please set your '' '''Service Password''' '' under following site: https://bwidm.scc.kit.edu.
 
<br>
 
A share can be mounted to a local directory, (e.g. /mnt/cifs ).
 
You do need root rights on the local system.
 
 
<h3>Mount over command line</h3>
 
 
'''Example:'''
 
 
<pre>
 
>mkdir /mnt/cifs
 
>mount -t cifs -o username='bwfilestorage.lsdf.kit.edu\ka_xy1234' //bwfilestorage.lsdf.kit.edu/ka /mnt/cifs
 
Password:
 
 
or
 
 
>mount.cifs -o mount.cifs -o username='ka_xy1234',workgroup=bwfilestorage.lsdf.kit.edu //bwfilestorage.lsdf.kit.edu/ka /mnt/cifs
 
Password:
 
 
or
 
 
>mount -t cifs -o username=ka_xy1234,workgroup=bwfilestorage.lsdf.kit.edu -o UID=xxxx,GID=yyyy //bwfilestorage.lsdf.kit.edu/ka/ka_groupname /mnt/cifs
 
Password:
 
 
>df | grep cifs
 
//bwfilestorage.lsdf.kit.edu/ka
 
291441213440 204573500416 86867713024 71% /mnt/cifs
 
>cd /mnt/cifs/ka_groupname/ka_xy1234
 
>ls
 
</pre>
 
Verify the success of the mount invoking the mount command without any arguments:
 
<pre>
 
mount | grep cifs
 
//bwfilestorage.lsdf.kit.edu/ka on /mnt/cifs type cifs (rw)
 
</pre>
 
 
<h3>Mount over /etc/fstab</h3>
 
 
'''Example:'''
 
 
<pre>
 
>mkdir /mnt/mountpoint
 
/etc/fstab
 
//bwfilestorage.lsdf.kit.edu/ka/ka_groupname/ka_xy1234 /mnt/mountpoint cifs uid= xxxx,gid= yyyy,credentials=/path_to_user_HOME/credentialsfile,auto 0 0
 
# ka (for example) : prefix
 
# ka_xy1234 : bwfilestorage user
 
# xxxx/yyyy : user uid/gid
 
 
>cat /path_to_user_HOME/credentialsfile
 
username=ka_ xy1234
 
password=*****
 
domain=bwfilestorage.lsdf.kit.edu
 
 
>mount /mnt/mountpoint
 
</pre>
 
Verify the success of the mount invoking the mount command without any arguments:
 
<pre>
 
mount | grep cifs
 
//bwfilestorage.lsdf.kit.edu/ka/ka_groupname/ka_xy1234 on /mnt/mountpoint type cifs (rw)
 
</pre>
 
-->
 
<H1> Using SMB/CIFS for Windows client </H1>
 
 
'''Attention:''' To access data served by SDS@hd via CIFS, You need a '''''Service Password'''''. Please set your '' '''Service Password''' '' under following site: https://bwservices.uni-heidelberg.de.
 
 
<br>
 
You can use a CIFS share from a Microsoft operating system.
 
 
<H2>Adopting Universal Naming Convention (UNC) syntax</H2>
 
 
Use Windows Explorer entering the path to the share in UNC syntax:
 
 
'''Examples:'''
 
 
<pre>
 
\\lsdf02export.urz.uni-heidelberg.de
 
or
 
\\lsdf02export.urz.uni-heidelberg.de\<sv-acronym>
 
</pre>
 
 
Following the input of the UNC path, a window will pop up: <br>
 
'''Loginname:''' BWSERVICESAD\hd_xy123 <br>
 
'''Password:''' ''Service Password''
 
<br><br>
 
Following authentication a new window pops up, showing the content of the share.
 
You can now manipulate your files as accustomed.
 
[[File:Sds-hd-smb-auth.png ]]
 
 
<H2>Creation of a network (pseudo) drive with Windows Explorer</H2>
 
 
To connect to a network share in Windows Explorer select the control field<br>
 
Select a drive letter to be associated with the network share and enter the network path (e.g. \\lsdf02export.urz.uni-heidelberg.de). Select ‘use a different identification‘, as these differ from your credential used locally.
 
<br><br>
 
'''Username:''' BWSERVICESAD\hd_xy123 <br>
 
'''Password:''' ''Service Password''
 
[[File:Sds-hd-smb-netdrive.png|500px|center|border ]]
 
 
<hr>
 
<br>
 
<br>
 
<br>
 
<br>
 
[[Category:Sds-hd|CIFS|SMB]]
 

Latest revision as of 16:50, 19 August 2022

Redirect to: