Difference between revisions of "User:Tomato"

From ArchWiki
Jump to: navigation, search
(Configuring samba)
(Configure file sharing from KDE4 using samba)
Line 2: Line 2:
  
 
=== Configure file sharing from KDE4 using samba ===
 
=== Configure file sharing from KDE4 using samba ===
 +
Sadly, this functionality is implemented using SUID perl script, and as Archlinux does not support SUID scripts nor it has perl-suid package we will have to get our hands dirty.
 +
 +
Work plan:
 +
# install packages
 +
# configure samba
 +
# modify {{Codeline|fileshareset}} scripts
 +
# create C wrapper for {{Codeline|fileshareset}} to work as a SUID binary
 +
# configure KDE side of things
 +
# share a folder
 +
 
Packages we will need:
 
Packages we will need:
 
* {{Package Official|kdebase-dolphin}} this is the interface we will use to share folders
 
* {{Package Official|kdebase-dolphin}} this is the interface we will use to share folders
Line 17: Line 27:
  
 
==== Configuring samba ====
 
==== Configuring samba ====
A basic config file should be OK:
+
A basic config file works OK, though you'll need to create Samba users (with <code>smbpasswd -a &lt;user name&gt;</code> as root):
 
{{File|name=smb.conf|content=[global]
 
{{File|name=smb.conf|content=[global]
 
workgroup=HOME
 
workgroup=HOME

Revision as of 23:56, 26 February 2010

just my personal scapbook

Configure file sharing from KDE4 using samba

Sadly, this functionality is implemented using SUID perl script, and as Archlinux does not support SUID scripts nor it has perl-suid package we will have to get our hands dirty.

Work plan:

  1. install packages
  2. configure samba
  3. modify Template:Codeline scripts
  4. create C wrapper for Template:Codeline to work as a SUID binary
  5. configure KDE side of things
  6. share a folder

Packages we will need:

Installing requisites

Install all packages and their dependencies:

Template:Codeline

Log out and log in again (kdelibs3 are in non standard place and so the PATH must be updated)

Configuring samba

A basic config file works OK, though you'll need to create Samba users (with smbpasswd -a <user name> as root): Template:File

Remember to add samba to DAEMONS in /etc/rc.conf if you want it to start at boot time.

magic: kcmshell4 fileshare