Subscribe
Notify of
guest

20 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Anonymous

When I try to share a folder using the procedure you described, I get the following error:

‘net usershare’ returned error 255: net usershare add: cannot convert name “Everyone” to a SID. Logon failure.

How do I fix this?

jonh

great tutorial, only problem is when I get to the section titled “Access Ubuntu Shared Folders from Windows 7” the Ubuntu computer simply does not show up on the network list.
You make no mention of anything to setup on the win 7 machine, what do I have to do to make my Ubuntu computer show up on my network?

Ciprian Adrian Rusen

In the Run window (Windows + R), type \name of ubuntu computer and see if you can access it. If not, then… either the Ubuntu computer is not on the same network or something is blocking it – sometimes security solutions interfere with your network and cause such issues.

Anonymous

I tried these same steps but whenever I try to access the shared folder I can access the linux machine but nothing is displayed (0 items), am I doing something wrong?

Also what is the role of the ‘smb.conf’ file when we can share the folders from inside the linux desktop? or do we have to configure smb.conf’ file first?

Thnx

Ciprian Adrian Rusen

You need to edit and configure the smb.conf file first. Check out this tutorial to learn what you need to do with it: https://www.digitalcitizen.life/workgroup-ubuntu-linux/

Ankur

simple and useful tutorial. using it right now

aseny

Fantastic i loved it, it really helped me alot thanx 🙂

Rajeeve

That helped very much. Thank you.

Ciprian Adrian Rusen

We’re glad this tutorial helped! 😀

burnedagain

When you share files with this method there are no entries created in /etc/samba/smb.conf that I can detect…….so what gives? Is this not a part of samba? Where is the .conf for this fileshare? I ask because I have a more complicated problem.

SilversleevesX

I’ve been trying to share password-protected folders on my Ubuntu (Desktop installed on top of Kubuntu) 11.04 laptop for almost two weeks now. I have not been able to do so, as my Windows 7 Home Premium installed on a desktop machine has invariably and repeatedly given me the message “Login failed: incorrect password” whenever I have tried to open the folders either of those shares represent from Win 7. Allowing Guest access works fine, and I’d be satisfied with it, except that under Guest access, any files created, copied to, or saved in the share invariably have to have their permissions, ownership and group ID changed in Linux. I know this isn’t necessary when a password-protected share has files created, copied to or saved in it, because the file’s umask is set correctly in smb.conf or somewhere else “under the hood” in Linux.

I have also discovered that, unless one mounts one’s own shared folder in Ubuntu Linux, there is absolutely no way of specifying that share’s umask; not to mention, this workaround seems only to apply to files created in shares from logged-in computers running Ubuntu, Debian or some other ‘flavor’ of Linux.

So what we have here is the proverbial ‘dog chasing its own tail.’

The last version of Windows I ran on any of my computers was Windows XP Pro SP3. It’s sad to think that in the last six or seven years, Microsoft, in trying to make up for security flaws and gaffes in the past (of this I have no doubt), have completely ruined what most folks might have been inclined at one time or another to call “their baby.” Samba, to many people I know, is synonymous with “Windows file sharing”; they’re surprised when I tell them it’s maintained by a separate organization having little or nothing to do directly with Microsoft. Now it would be foolish for anyone to make the connection, full stop, between the one and the other.

In short, there is no way to access password-protected folders on Ubuntu machines running SMB/CIFS from any incarnation of Windows 7, because what Windows 7 runs is obviously not “straight Samba.”

But take heart: most ISPs block the highest TCP/UDP ports, by number, by name 139 and 445, and as the lower two or three were intended strictly for LAN use, the whole of honest-to goodness Samba is, while not 100% secure, as close to it as should make no difference for most users.

BZT

Christopher Wilson
Christo

Goodday.

This works well to access the files. My problem is write protections.
If I save the file from a Windows 7 or 8 PC to the shared /home/netshared folder it get a read only lock on it.
I am able to fix thus via

sudo chown -R -L -H -v {username} *

But having to to do this each time is annoying, And doing this makes it Read only to the Windows PC and the other Linux PC.
In other words, I can see the files but can`t save over them from another PC.

Any ideas.

Melanie Rimmer

This is very helpful and easy to follow. It worked for me.

Andy Blahnik

Works great! Just remember to refresh the network list on the windows PC to see the new Ubuntu folders

Farshid T

For those who can’t get passed the authentication in windows, configure a username and password that will be used to access the share:
smbpasswd -a your-username

Then restart the SMB service:
sudo service smbd restart

Source: http://www.howtogeek.com/176471/how-to-share-files-between-windows-and-linux/

Travis H

Thanks! This tip helped me out greatly!

Zlatev

Thank you!

Quintus

I have tried everything above, Before sharing a file in Ubuntu I could see the machine on the network from another windoes computer. Once the sharing was made (I could never tick the ’Allow others to create and delete files in this folder’ ), the machine no longer appeared in the network…

You know what, Ubuntu really sucks… There is absolutely NOTHING straightforward nor user friendly. just wanted to have a small print server for my office, using a little old machine so I thought this would be perfect. Well it’s not and again I’m disappointed…

Juan Carlos

Need help, I have a ubuntu VPS and I enable sharing, everything seems ok. I use my smartphone as a hotspot and give wifi to my computer and I access my share folder with no problem. But when I connect to my wifi home, I am unable to access my share folder. I use CMD and ping the address and it works fine. So, Same computer, Different internet providers, one works and the other dont. Is there a way to fix that?