PDA

View Full Version : [ubuntu] need help setting up samba share (to share a folder on my linux box to windows client



jnw222
September 20th, 2009, 02:33 PM
this is becoming hard work trying to set this up.
i just cant get a working file share system working.

what i want to do.
1. have my ext. drive attached to my desktop.
2. be able to access the drive on windows clients remotely from the same wireless network (as a network drive preferably).
3. windows clients able to write and run files on the drive.

sooo need help.

my server is running 9.04 with latest updates

scrooge_74
September 20th, 2009, 02:40 PM
You need to read up the samba manual to get a better grasp of what you need.

You also need to install the samba server and open the ports for it to function properly, if Im not mistaken the Windows machines need to talk to your linux box using BIND for the name resolution part.

You are also going to need to export the disk as a share and you need to add to samba the users on the XP machines that will be using the drive. <-That all goes in the smb.conf file

Sorry being a while since I used samba, I'm just giving you a general idea of what you are going to face here.

http://us1.samba.org/samba/
http://us1.samba.org/samba/
https://help.ubuntu.com/8.04/serverguide/C/installing-samba.html
https://help.ubuntu.com/8.04/serverguide/C/configuring-samba.html
http://ubuntuforums.org/showthread.php?t=190542&highlight=open+port+138

dmizer
September 20th, 2009, 02:42 PM
Right click on the folder, select "sharing options". Make sure all three boxes are checked, and install any software it tells you to.

Done.

jnw222
September 20th, 2009, 02:50 PM
i dont use the GUI/GNOME

maybe a sample working /etc/samba/smb.conf or so would be nice
this gets frustratng

badger_fruit
September 20th, 2009, 02:58 PM
i dont use the GUI/GNOME

maybe a sample working /etc/samba/smb.conf or so would be nice
this gets frustratng


/etc/samba/smb.conf has many options and comments to help you with configuring your own samba server; here is a template i use, i copy and paste it into smb.conf, edit where appropriate and restart the samba service (sudo service samba restart)



[global]
printing = cups
printcap name = cups
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
usershare allow guests = Yes
netbios name = MYCOMPUTERNAME
workgroup = MYWORKGROUP
server string = "COMPUTER DESCRIPTION"
name resolve order = bcast host lmhosts wins

[A_SHARE]
comment = SHARE COMMENTS
path = /path/to/share
guest ok = yes
read only = no
force user = name_of_local_user

dmizer
September 20th, 2009, 02:58 PM
The default smb.conf should be sufficient. Just add your share definition at the end.

A working share definition might look like this:

[test]
path = /mnt/raid/test
browseable = yes
read only = no
guest ok = yes
Change test to whatever you'd like your share to be named, and change /mnt/raid/test to the actual location of your share.

jnw222
September 20th, 2009, 03:21 PM
my network must have something against file and printer sharing. i copied you r suggestion and restarted, but still didn't work (both windows computers didnt even see my desktop of the same workgroup.

dmizer
September 20th, 2009, 03:57 PM
my network must have something against file and printer sharing. i copied you r suggestion and restarted, but still didn't work (both windows computers didnt even see my desktop of the same workgroup.

You can't just copy/paste.

You must make changes that match your own environment. I pointed out a few, and so did badger_fruit

jnw222
September 20th, 2009, 04:08 PM
i ment copied mut modified names paths, etc to fit my workgroup, folder, names. etc

badger_fruit
September 20th, 2009, 04:35 PM
can your windows machine ping your ubuntu machine and vice-versa?

scrooge_74
September 20th, 2009, 05:30 PM
i ment copied mut modified names paths, etc to fit my workgroup, folder, names. etc

Did you took the time to read any documentation for samba? It would seem you just want people to give you a quick fix solution without learning how to do it, samba is one of those things you need to understand it so it dosent end up being a frustrating task