Manjaro Использование Samba в файловом менеджере

Использование Samba в файловом менеджере

From Manjaro
Revision as of 09:24, 19 January 2023 by Krotesk (talk | contribs) (Created page with "Пакет {{ic|manjaro-settings-samba}} установит базовую конфигурацию и включит службы обмена файлами. Весь про...")
Other languages:
English • ‎Türkçe • ‎русский

Получение доступа к общим ресурсам SMB из файлового менеджера

Dolphin способен монтировать файловые ресурсы smb без необходимости установки дополнительных пакетов. Все остальные файловые менеджеры требуют установки пакета gvfs-smb. Он присутствует по умолчанию в большинстве редакций Manjaro, но если вам нужно установить его - Вы можете сделать это с помощью:

pamac install gvfs-smb


Обмен файлами из файлового менеджера

Далее мы расскажем Вам, как настроить общий доступ пользователей к Samba, чтобы использовать файловый менеджер для общего доступа к каталогам.


Установка

В зависимости от того, какой файловый менеджер Вы используете, существуют различные пакеты для установки. Пожалуйста, обратитесь к соответствующему разделу для Вашего файлового менеджера.


Пакет manjaro-settings-samba установит базовую конфигурацию и включит службы обмена файлами. Весь процесс хорошо автоматизирован.


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


Завершение

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.


Устранение неисправностей

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.


Брандмауэр

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.