CKB:Mounting Windows shared folder: Unterschied zwischen den Versionen

Aus Cryptshare Documentation
Wechseln zu:Navigation, Suche
(Imported from text file)
 
(→‎Solution:: Samba Version und Windows user)
 
(Eine dazwischenliegende Version von einem anderen Benutzer wird nicht angezeigt)
Zeile 9: Zeile 9:


== Solution: ==
== Solution: ==
# log in as '''root''' on your appliance
1. log in as '''root''' on your appliance
# install the tool '''cifs-utils''' using the following command
 
2. install the tool '''cifs-utils''' using the following command
  '''cifs-utils'''
  '''cifs-utils'''
   
   
  zypper in cifs-utils
  zypper in cifs-utils
# create a mount point for the mount of Windows share called e.g. windows-share
3. create a mount point for the mount of Windows share called e.g. windows-share
  '''mount point'''
  '''mount point'''
   
   
  mkdir /mnt/windows-share
  mkdir /mnt/windows-share
# add the following line into the file '''/etc/fstab'''
4. add the following line into the file '''/etc/fstab'''
  '''fstab'''
  '''fstab'''
   
   
  //<IP or DNS name of the Windows server>/<name of share> /mnt/windows-share cifs username=<USER>,password=<PASSWORD>,file_mode=0777,dir_mode=0777,vers=2.0 0 0
  //<IP or DNS name of the Windows server>/<name of share> /mnt/windows-share cifs username=<USER>,password=<PASSWORD>,file_mode=0777,dir_mode=0777,vers=2.0 0 0
<USER> user with access to the shared folder
<USER> user with access to the shared folder
 
<PASSWORD> password of the user mentioned above
<PASSWORD> password of the user mentioned above
# execute following command to mount the Windows share
 
5. execute following command to mount the Windows share
  '''mount'''
  '''mount'''
   
   
  mount -a
  mount -a
== Troubleshooting ==
In case the mounting procedure results in an error, check these two steps:
1. Force the Samba Version to 2.0 in /etc/fstab (see line in bold):
//<IP or DNS name of the Windows server>/<name of share> /mnt/windows-share cifs username=<USER>,password=<PASSWORD>,file_mode=0777,dir_mode=0777,'''vers=2.0''' 0 0
2. Check if the Windows user has access to the drive itself or only to the folder.

Aktuelle Version vom 21. November 2023, 13:27 Uhr


Applies to:

All versions of Cryptshare Server

Purpose:

This is an example on mounting Windows shares on Cryptshare Appliances

Solution:

1. log in as root on your appliance

2. install the tool cifs-utils using the following command

cifs-utils

zypper in cifs-utils

3. create a mount point for the mount of Windows share called e.g. windows-share

mount point

mkdir /mnt/windows-share

4. add the following line into the file /etc/fstab

fstab

//<IP or DNS name of the Windows server>/<name of share> /mnt/windows-share cifs username=<USER>,password=<PASSWORD>,file_mode=0777,dir_mode=0777,vers=2.0 0 0

<USER> user with access to the shared folder

<PASSWORD> password of the user mentioned above

5. execute following command to mount the Windows share

mount

mount -a

Troubleshooting

In case the mounting procedure results in an error, check these two steps:

1. Force the Samba Version to 2.0 in /etc/fstab (see line in bold):

//<IP or DNS name of the Windows server>/<name of share> /mnt/windows-share cifs username=<USER>,password=<PASSWORD>,file_mode=0777,dir_mode=0777,vers=2.0 0 0

2. Check if the Windows user has access to the drive itself or only to the folder.