Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to create an SMB share on my Windows machine, so that my Linux machine can see and access it over the network. I tried setting up 'sharing' on the folder, but this hasn't worked.

How can I set up the folder to work correctly with SMB on Windows 7?

share|improve this question
What distro are you running? In *buntus, the file managers tend to come with "connect to network" option where the shares on Windows machine show up automatically. – Ash Dec 2 '13 at 11:24
What you are saying is not clear. What did you try and what failed? In line of principle, if you share a directory and give access permissions to everyone, your Linux pc will have no problem whatsoever to connect, it needs no special configuration. So what exactly failed? – MariusMatutiae Dec 2 '13 at 12:45

1 Answer 1

Install smbfs:

sudo apt-get install smbfs

Create folder /media/linkshare:

sudo mkdir /media/linkshare

Mount folder:

sudo mount -t cifs "//<ip address>/public documents" /media/linkshare -o guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777

Mount folder requires authentication using login and password:

sudo mount -t cifs //<ip address>/WindowsShare /media/linkshare -o username=windowsuser,password=windowspass,iocharset=utf8,file_mode=0777,dir_mode=0777
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.