Ubuntu/XP Network Shared Folder

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

I rebuilt all my computers this week and I managed to combine all my old hardware to make another computer. Instead of running FreeBSD again, I decided to run Ubuntu. I have it all setup now: I use UltraVNC (from my XP machines) to get into it, it can detect all my shared folders on the two XP machines. The problem I am having is I can't figure out how to create a shared folder on Ubuntu.

This is what I have tried to do

Right click on a folder I made on the desktop (called untitled folder) and click "share folder". Then I type in my password. And a little box comes up and says

Shared folder
Path: /home/matt/Desktop/untitled
Share with: [two options] Do not share, SMB

I select SMB and fill in the Share properties and click ok.

When I view my workgroup computers on XP, I see Ham (XP), Bacon (XP) and Beef (ubuntu). But when I double click on Beef I get a password box and I type in my ubuntu login information but it won't work.

I'd like to disable the password thing, and get a file to be shared on Ubuntu. I tried searching Google for a solution, but I can't find anything that helps very much.

I'm familiar with the command line so if I have to use it it's ok.

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

I figured out how to do it. Here is the page that I found that helped me out. You have to type

Quote: sudo smbpasswd -e

and then the steps I did above will work.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Wish I'd seen this, could have saved you some time as had exactly the same problem a few months ago. Smiling

The Ubuntu forums are very good (content-wise). Naturally the best way to manage a group of computers is to create a proper domain: LDAP really blew my mind though, will give it another try sometime. If you work it out first Matt: let me know.

a Padded Cell our articles site!

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

To bring up an old thread... teammatt3, when you did this on your network, did you end up sharing your entire home folder as well? Because I did, how did you get it so only the shared folder is shown and now your entire home folder?

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Yeah it did. But the second time around when I did it, it didn't. I think it was because of the thing I put in bold down in the list.

  • First go back into the samba admin panel thing, and delete all your shared folders.
  • Then add a new one by clicking add.
  • In the path navigate to the directory you want to be shared. Don't just highlight it, click into the folder so you can see the content of it. Then hit open.
  • Set the shared name to "Shared" or something like that without spaces.
  • Add a comment if you want.
  • Leave the other stuff defaulted.
  • Click ok, on the other panel, make sure you see the folder icon with something like "/home/matt/Shared", then click ok.

Head back over to windows, and in windows explorer go to \\Beef\Shared where beef is the comp's name, and Shared is the name of the shared folder you specified in samba. If you get prompted for username and password enter it in, and you should see the shared contents, without the the home directory available. How's that work for you Renegade?

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Still getting the same thing, here's exactly what I did:

1, removed my samba account - "sudo smbpasswd -x "
2, removed my shared folder entry in samba panel
3, "sudo smbpasswd -a "
4, added my shared folder by clicking into the folder

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

lol, I went through your steps and it worked fine. No home directory listing, just the shared folder. Take a look at /etc/samba/smb.conf. Line ~215, the "[homes]", "comment = Home Directories", "browseable = no" should all be commented out. Are they?

Oh, I forgot, don't forget to restart smb when you're done. /etc/init.d/samba restart

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Oh yip, that works perfectly for me now Smiling Thanks Laughing out loud

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.