Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 2 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:

[homes]
    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
add comment

Your Answer

 
discard

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.