Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just installed a new Debian Wheezy and I am trying to create a new share. I am using KDE 4, and there in the folder preferences menu I found option to share the folder with Samba - it doesn't seem to do anything though!

Is there a GUI or some web based configuration tool available in Debian?

share|improve this question
up vote 12 down vote accepted

I'm not familiar with a GUI to accomplish this but the steps to do this manually from a terminal aren't too bad. You just need to do the following:

Install Samba & required packages

sudo apt-get install smbfs samba

Edit the conf file /etc/samba/smb.conf

Make sure you have the following line in this file and that it's uncommented. It might be set to security = share be default.

security = user

Also in this file, in your "Share Definitions" section, set up a new share similar to the following:

   comment = Guest access Share
   path = /mnt/primary
   writeable = yes
   valid users = @smb
   guest ok = no

This says that the share will be called "primary", the local path to the share directory is at /mnt/primary, authorized users can write, only users in the group smb are allowed, and anonymous guests cannot use this.

Testing setup with testparm

When you are done, save the file. Then run testparm to see if there are any problems.

example testparm run

$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Press enter to see a dump of your service definitions

    workgroup = MYGROUP
    server string = Samba Server Version %v
    log file = /var/log/samba/log.%m
    max log size = 50
    cups options = raw

    comment = Home Directories
    read only = No
    browseable = No

    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    browseable = No

Starting Samba

Lastly, restart the samba server:

/etc/init.d/samba restart

Client Setup (On Windows)

Choose map network drive from the "My Computer" screen. Then enter:


For example:


Then choose "login with different credentials" and enter your Linux username/password.


share|improve this answer

There is the SWAT (Samba Web Administration Tool), from which can administer your samba server.

It can do everything in the chosen answer - less the client configuration - and more. Just install it, sudo apt-get install swat, and navigate to your server at port 901 (192.168.x.x:901) from a Web browser.

You need to log in as root per samba reqs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.