Freitag, 14. September 2018

Mount Windows network shares with Dolphin and Nautilus in Ubuntu

Make sure you have installed the cifs-utils and smbclient packages:
# apt-get install cifs-utils smbclient
After you have installed the packages try to access the Windows share with the smbclient tool:
$ smbclient -U <user name> -L //<server name>  -W <domain name>
 
If you get the following error message: protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
try to specify a protocol version:
$ smbclient -U <user name> -L //<server name>  -W <domain name> -m <protocol version, e. g. SMB2>
In this case you need to create a configuration file with the following content:
~/.smb/smb.conf
[global]                                                                                                                                                                          
  workgroup = <domain name>                                                                                                                                                  
  client max protocol = <protocol version>

It should now be possible to access the shares with Nautilus and Dolphin. Use the following format to mount the network share:
  • Nautilus: smb://<domain name>,<user name>@<server name>/<share name>
  • Dolphin: smb://<domain name>\<user name>@<server name>/<share name>
 Another option would be to mount the network share:
$ sudo mount --types cifs --options uid=${USER},gid=100,user=<windows user name>,domain=<domain name> //<server name>/<share name> <mount path>
The directory where the share should be mounted must exist.

Keine Kommentare:

Kommentar veröffentlichen