Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: need help setting up samba share (to share a folder on my linux box to windows client

  1. #1
    Join Date
    Apr 2008
    Beans
    242

    need help setting up samba share (to share a folder on my linux box to windows client

    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
    Last edited by jnw222; September 20th, 2009 at 02:36 PM.

  2. #2
    Join Date
    Mar 2006
    Location
    /dev/null
    Beans
    2,684

    Re: need help setting up samba share (to share a folder on my linux box to windows cl

    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/serverg...ing-samba.html
    https://help.ubuntu.com/8.04/serverg...ing-samba.html
    http://ubuntuforums.org/showthread.p...=open+port+138
    First they ignore you.Then they laugh at you. Then they fight you.Then you win.Gandhi
    Linux para las masas
    Resistance Is Futile. You Will Be Assimilated!

  3. #3
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: need help setting up samba share (to share a folder on my linux box to windows cl

    Right click on the folder, select "sharing options". Make sure all three boxes are checked, and install any software it tells you to.

    Done.

  4. #4
    Join Date
    Apr 2008
    Beans
    242

    Re: need help setting up samba share (to share a folder on my linux box to windows cl

    i dont use the GUI/GNOME

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

  5. #5
    Join Date
    Sep 2009
    Location
    In a cold, dark place
    Beans
    186
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: need help setting up samba share (to share a folder on my linux box to windows cl

    Quote Originally Posted by jnw222 View Post
    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)

    Code:
    [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

  6. #6
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: need help setting up samba share (to share a folder on my linux box to windows cl

    The default smb.conf should be sufficient. Just add your share definition at the end.

    A working share definition might look like this:
    Code:
    [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.

  7. #7
    Join Date
    Apr 2008
    Beans
    242

    Re: need help setting up samba share (to share a folder on my linux box to windows cl

    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.

  8. #8
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: need help setting up samba share (to share a folder on my linux box to windows cl

    Quote Originally Posted by jnw222 View Post
    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

  9. #9
    Join Date
    Apr 2008
    Beans
    242

    Re: need help setting up samba share (to share a folder on my linux box to windows cl

    i ment copied mut modified names paths, etc to fit my workgroup, folder, names. etc

  10. #10
    Join Date
    Sep 2009
    Location
    In a cold, dark place
    Beans
    186
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: need help setting up samba share (to share a folder on my linux box to windows cl

    can your windows machine ping your ubuntu machine and vice-versa?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •