Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 want to share my home folder with my Windows machine, but I have no idea how to share the folder.

I can't find any up-to-date guides on Google, so how can I share my home directory?

share|improve this question
up vote 3 down vote accepted

I've always found the default installation of Samba already exports home directories. If it doesn't you need to edit /etc/samba/smb.conf to include a section like:

    comment = Homes Directories
    valid users = %S
    read only = No
    create mask = 0700
    directory mask = 0700

You then need to add your username to Samba's user database by executing

smbpasswd -a orcris

(assuming your linux username is orcris - replace as needed)

The windows share is then \\yourlinux\orcris. It will likely prompt for your linux username and smbpasswd (which doesn't have to be synchronized with your linux login password).

Documentation I've found tends to forget to tell you to add the username using smbpasswd.

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.