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.
(For information about how to setup Samba correctly see below)
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 git, 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
If your are using (X)ubuntu 8.04 or later, check your User privileges after installing the plugin. Also install the samba and libpam-smbpass packages.
For non (X)ubuntu users, the Samba setup is as follows:
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}
[global] workgroup = WORKGROUP security = share usershare path = /var/lib/samba/usershares usershare max shares = 100 usershare allow guests = yes usershare owner only = yes
usermod -a -G ${USERSHARES_GROUP} your_username
sysvinit:
/etc/init.d/samba restart
systemd:
systemctl restart smbd