Xfce Wiki

Sub domains
 

Thunar - thunar-shares-plugin

Introduction

The Thunar Shares Plugin (thunar-shares-plugin) allows you to quickly share a folder using Samba from Thunar (the XFCE file manager) without requiring root access.


Screenshots

thunar-shares-plugin.png

The share editor can be found in the file properties dialog (Share page).


Required Packages

For detailed information on the minimum required versions, check the configure.ac.in file.

Back to Top


Dependencies

  • Thunar
  • Thunar-VFS (0.8 or above)
  • Thunarx (0.8 or above)
  • Gtk+-2.0 (2.12 or above)
  • Glib-2.0 (2.10 or above)

Building and Installing

(For information about how to setup Samba correctly see bellow)

If you downloaded a source tarball from the download page, you can run:

./configure --prefix=$(pkg-config --variable prefix thunarx-1)

in order to configure the plugin. If you fetched the source from SVN, you have to use this command:

./autogen.sh --prefix=$(pkg-config --variable prefix thunarx-1)

After that you should be able to build and install the plugin, using the following commands (remember you have to be root for that!):

make && make install

Setup Samba

If your are using (X)ubuntu 8.04 or above just check your User privileges after install the plugin. Also install samba and libpam-smbpass.

For non (X)ubuntu users the Samba setup is:

Create a group (must be done as root)

  export USERSHARES_DIR="/var/lib/samba/usershares"
  export USERSHARES_GROUP="sambashare"
  mkdir -p ${USERSHARES_DIR}
  groupadd ${USERSHARES_GROUP}
  chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}
  chmod 01770 ${USERSHARES_DIR}

Use the following /etc/samba/smb.conf (or something similar)

  [global]
  workgroup = WORKGROUP
  security = share
  usershare path = /var/lib/samba/usershares
  usershare max shares = 100
  usershare allow guests = yes
  usershare owner only = yes

Add the samba group to your user (replace your_username by your login)

  usermod -a -G ${USERSHARES_GROUP} your_username

Restart Samba daemons

  /etc/init.d/samba restart

Logout and login your user (your_username)

Latest Release

  • thunar-shares-plugin 0.4.0 released (2025/01/19 09:28)
    thunar-shares-plugin 0.4.0 is now available for download from https://archive.xfce.org/src/thunar-plugins/thunar-shares-plugin/0.4/thunar-shares-plugin-0.4.0.tar.bz2 https://archive.xfce.org/src/thunar-plugins/thunar-shares-plugin/0.4/thunar-shares-plugin-0.4.0.tar.bz2?sha1 https://archive.xfce.org/src/thunar-plugins/thunar-shares-plugin/0.4/thunar-shares-plugin-0.4.0.tar.bz2?sha256 What is thunar-shares-plugin? ============================= thunar-shares-plugin allows you to quickly share a folder using Samba from Thunar (the XFCE file manager) without requiring root access. Website: https://docs.xfce.org/xfce/thunar/custom-actions Release notes for 0.4.0 ======================= Note for package maintainer: This update introduces a dependency to xfconf Changelog: - Fix string leaks in tsp_provider_get_menu - Use xfconf channel to toggle contect menu contribution - Context menu contribution to share folder - tsp-page: Fix string leak in tsp_page_set_error - build: Add ACLOCAL_FLAGS to ACLOCAL_AMFLAGS - build: Use XDT_VERSION_INIT and get rid of configure.ac.in - build: Add missing check for bind_textdomain_codeset - I18n: Update po/LINGUAS list - build: Cleanup autotools warning, remove intltool - tsp-page: Replace gnome-fs-share with folder-publicshare icon - Update documentation link Translation Updates: Albanian, Arabic, Armenian (Armenia), Basque, Belarusian, Bulgarian, Catalan, Chinese (China), Chinese (Taiwan), Croatian, Czech, Danish, Dutch, Eastern Armenian, Eastern Armenian (Russia), English (Australia), English (United Kingdom), Estonian, Finnish, French, Galician, German, Greek, Hebrew, Hungarian, Icelandic, Indonesian, Interlingue, Italian, Japanese, Kazakh, Korean, Latvian, Lithuanian, Malay, Norwegian Bokmål, Occitan (post 1500), Polish, Portuguese, Portuguese (Brazil), Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swedish, Turkish, Ukrainian, Urdu, Urdu (Pakistan), Uyghur, Uzbek, Vietnamese

Previous Releases

Source Code Repository

Reporting Bugs

Back To Top


Back to Thunar documentation page