Manjaro Difference between revisions of "Using Samba in your File Manager"

Difference between revisions of "Using Samba in your File Manager"

From Manjaro
(→‎Troubleshooting: Added Protocol section because this is still the hottest problems on the forum)
(Marked this version for translation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
__TOC__
__TOC__


<translate>
=Accessing SMB Shares from the File Manager= <!--T:1-->


=Accessing SMB Shares from the File Manager=
<!--T:2-->
 
Dolphin is capable of mounting smb file shares without needing any additional packages.  All other file managers require installing the package {{ic|gvfs-smb}}.  This is present by default in most Manjaro editions but if you need to install it you can so with:
Dolphin is capable of mounting smb file shares without needing any additional packages.  All other file managers require installing the package {{ic|gvfs-smb}}.  This is present by default in most Manjaro editions but if you need to install it you can so with:
  pamac install gvfs-smb
  pamac install gvfs-smb




=Sharing Files from the File Manager=
=Sharing Files from the File Manager= <!--T:3-->


<!--T:4-->
The following will guide you through setting up user sharing with Samba so that you can use your file manager to share folders.
The following will guide you through setting up user sharing with Samba so that you can use your file manager to share folders.




== Installation ==
== Installation == <!--T:5-->


<!--T:6-->
Depending on which file manager you use there are different packages to install.  Please reference the appropriate section for your file manager.
Depending on which file manager you use there are different packages to install.  Please reference the appropriate section for your file manager.




<!--T:7-->
The {{ic|manjaro-settings-samba}} package will install a basic config and enable the file sharing services.  The whole process is nicely automated.
The {{ic|manjaro-settings-samba}} package will install a basic config and enable the file sharing services.  The whole process is nicely automated.




===Nemo - Cinnamon===
===Nemo - Cinnamon=== <!--T:8-->


  pamac install nemo-share manjaro-settings-samba
  <!--T:9-->
pamac install nemo-share manjaro-settings-samba




===Nautilus - Gnome/Budgie===
===Nautilus - Gnome/Budgie=== <!--T:10-->


  pamac install nautilus-share manjaro-settings-samba
  <!--T:11-->
pamac install nautilus-share manjaro-settings-samba




===Caja - MATE===
===Caja - MATE=== <!--T:12-->


  pamac install caja-share manjaro-settings-samba
  <!--T:13-->
pamac install caja-share manjaro-settings-samba




===Thunar - XFCE===
===Thunar - XFCE=== <!--T:14-->


  pamac install thunar-shares-plugin-gtk3
  <!--T:15-->
pamac install thunar-shares-plugin-gtk3




===Dolphin - KDE/plasma===
===Dolphin - KDE/plasma=== <!--T:16-->


  pamac install samba kdenetwork-filesharing manjaro-settings-samba
  <!--T:17-->
pamac install samba kdenetwork-filesharing manjaro-settings-samba




==Finishing Up==
==Finishing Up== <!--T:18-->


<!--T:19-->
Once you have installed the required packages for your file manager you should '''reboot''' to start the services and let the group changes take effect.
Once you have installed the required packages for your file manager you should '''reboot''' to start the services and let the group changes take effect.




=Troubleshooting=
=Troubleshooting= <!--T:20-->


==Protocol version==
==Protocol version== <!--T:21-->


<!--T:22-->
Since samba 4.11.0 released on 2019-09-17, the very old Windows NT protocol is disabled by default because of serious security issues, so if you connect to:
Since samba 4.11.0 released on 2019-09-17, the very old Windows NT protocol is disabled by default because of serious security issues, so if you connect to:
* a supported Windows version
* a supported Windows version
Line 60: Line 72:
* a supported NAS appliance
* a supported NAS appliance


<!--T:23-->
Please upgrade these to the latest version and disable the NT1 protocol on these servers if not done automatically.
Please upgrade these to the latest version and disable the NT1 protocol on these servers if not done automatically.


<!--T:24-->
If you connect to:
If you connect to:
* an unsupported Windows version
* an unsupported Windows version
* an unsupported NAS
* an unsupported NAS


<!--T:25-->
Please turn off file sharing towards the Internet and know that malicious users on your LAN (unless isolated in a guest network) will be able to access all local NT1 shares with full control.
Please turn off file sharing towards the Internet and know that malicious users on your LAN (unless isolated in a guest network) will be able to access all local NT1 shares with full control.


==User Accounts==
==User Accounts== <!--T:26-->


<!--T:27-->
If you are getting permission denied when connecting to a new share, one common cause of this is that samba does not have access to Linux user passwords by default.  To remedy this, create a samba password for your user account:
If you are getting permission denied when connecting to a new share, one common cause of this is that samba does not have access to Linux user passwords by default.  To remedy this, create a samba password for your user account:
   
   
Line 75: Line 91:




<!--T:28-->
This will create a password for the user.
This will create a password for the user.




==User Doesn't have Rights to Create Shares==
==User Doesn't have Rights to Create Shares== <!--T:29-->


<!--T:30-->
If you get an error that you don't have rights to create shares ensure that you user account has been added to the [[System_Maintenance#Groups|group]] sambashare.  After modifying groups it is required to logout for the changes to take effect.
If you get an error that you don't have rights to create shares ensure that you user account has been added to the [[System_Maintenance#Groups|group]] sambashare.  After modifying groups it is required to logout for the changes to take effect.






==Firewall==
==Firewall== <!--T:31-->




<!--T:32-->
If you are getting "connection denied" errors make sure you have allowed access through your firewall.  See [[Firewalls|the firewall wiki article]] for more details.
If you are getting "connection denied" errors make sure you have allowed access through your firewall.  See [[Firewalls|the firewall wiki article]] for more details.


=See Also=
=See Also= <!--T:33-->
* The [https://www.samba.org/ Samba Project]
* The [https://www.samba.org/ Samba Project]
* The [https://wiki.archlinux.org/index.php/Samba Arch Wiki] Samba Page
* The [https://wiki.archlinux.org/index.php/Samba Arch Wiki] Samba Page
</translate>


 
[[Category:Contents Page{{#translation:}}]]
[[Category:Contents Page]]

Latest revision as of 18:58, 7 September 2021

Other languages:
English • ‎Türkçe • ‎русский

Accessing SMB Shares from the File Manager

Dolphin is capable of mounting smb file shares without needing any additional packages. All other file managers require installing the package gvfs-smb. This is present by default in most Manjaro editions but if you need to install it you can so with:

pamac install gvfs-smb


Sharing Files from the File Manager

The following will guide you through setting up user sharing with Samba so that you can use your file manager to share folders.


Installation

Depending on which file manager you use there are different packages to install. Please reference the appropriate section for your file manager.


The manjaro-settings-samba package will install a basic config and enable the file sharing services. The whole process is nicely automated.


Nemo - Cinnamon

pamac install nemo-share manjaro-settings-samba


Nautilus - Gnome/Budgie

pamac install nautilus-share manjaro-settings-samba


Caja - MATE

pamac install caja-share manjaro-settings-samba


Thunar - XFCE

pamac install thunar-shares-plugin-gtk3


Dolphin - KDE/plasma

pamac install samba kdenetwork-filesharing manjaro-settings-samba


Finishing Up

Once you have installed the required packages for your file manager you should reboot to start the services and let the group changes take effect.


Troubleshooting

Protocol version

Since samba 4.11.0 released on 2019-09-17, the very old Windows NT protocol is disabled by default because of serious security issues, so if you connect to:

  • a supported Windows version
  • a supported Linux Samba server
  • a supported NAS appliance

Please upgrade these to the latest version and disable the NT1 protocol on these servers if not done automatically.

If you connect to:

  • an unsupported Windows version
  • an unsupported NAS

Please turn off file sharing towards the Internet and know that malicious users on your LAN (unless isolated in a guest network) will be able to access all local NT1 shares with full control.

User Accounts

If you are getting permission denied when connecting to a new share, one common cause of this is that samba does not have access to Linux user passwords by default. To remedy this, create a samba password for your user account:

sudo smbpasswd -a theusername


This will create a password for the user.


User Doesn't have Rights to Create Shares

If you get an error that you don't have rights to create shares ensure that you user account has been added to the group sambashare. After modifying groups it is required to logout for the changes to take effect.


Firewall

If you are getting "connection denied" errors make sure you have allowed access through your firewall. See the firewall wiki article for more details.

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.