Linux Samba help.

Discussion in 'Software' started by ellism, 23 Jan 2004.

  1. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    :confused: hi guys, just got my linux box up and running and am trying to run samba on it to talk to my XP mashine, I have tried all sorts of config steups yet still can't get it to work. My XP my mashine see's the samba server but it says somthing about duplicate names and to go into controle pannel to sort it out. :confused:

    N E ideas guys? tanks in advance.
     
  2. bmh.01

    bmh.01 What's a Dremel?

    Joined:
    7 Mar 2002
    Posts:
    149
    Likes Received:
    0
    Distro and Version ?
    Samba Version ?

    Post your smb.conf file.
     
  3. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Moving to the correct forum and we need to see your samba .conf file :)
     
  4. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    Sorry for putting this in the wrong forum. I am using fedora core 1 and i belive samba 3. I can't get to my linux box right now so i can't post the config file right now, will try and do so tmro. As u can probably tell i am relativly new to linux. quick q. is there any special settings u need to put into windows to get it to work, cos actualy i am new to networking as a whole and as usual i jump in at the deep end. tnks in advance. mertin
     
  5. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    hi ya here is my config file, i know that it is simple but the samba manual says that it should work

    [global]
    workgroup = wkg
    netbios name = myname

    [share1]
    path = /tmp

    i also did a loop back call and got this result

    [root@localhost root]# smbclient -L 127.0.0.1
    Password:
    Anonymous login successful

    Sharename Type Comment
    --------- ---- -------
    share1 Disk
    IPC$ IPC IPC Service (Samba 3.0.0-15)
    ADMIN$ IPC IPC Service (Samba 3.0.0-15)
    Anonymous login successful

    Server Comment
    --------- -------
    MYNAME Samba 3.0.0-15

    Workgroup Master
    --------- -------
    WKG

    but still my xp box won't connect to it
     
  6. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Having never used samba before :)D), i would try the following as the share dir seems to be wierd.. /tmp ?

    [global]
    workgroup = workgroup
    netbios name = fedora

    [share1]
    path = /home/{your-user-dir}
     
  7. bmh.01

    bmh.01 What's a Dremel?

    Joined:
    7 Mar 2002
    Posts:
    149
    Likes Received:
    0
    Your smb.conf seems to be missing a few things, this is mine (minus my shares).


    # This is the main Samba configuration file. You should read the
    # smb.conf(5) manual page in order to understand the options listed
    # here. Samba has a huge number of configurable options (perhaps too
    # many!) most of which are not shown in this example
    #
    # Any line which starts with a ; (semi-colon) or a # (hash)
    # is a comment and is ignored. In this example we will use a #
    # for commentry and a ; for parts of the config file that you
    # may wish to enable
    #
    # NOTE: Whenever you modify this file you should run the command "testparm"
    # to check that you have not made any basic syntactic errors.
    #
    #======================= Global Settings =====================================
    [global]
    password server = None
    username map = /etc/samba/smbusers
    load printers = yes
    os level = 20
    passwd program = /usr/bin/passwd
    workgroup = WORKGROUP
    public = yes
    server string = Home Server
    printcap name = /etc/printcap
    netbios name = Homeserver
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    null passwords = yes
    encrypt passwords = yes
    log file = /var/log/samba/%m.log
    dns proxy = no
    max log size = 50

    [homes]
    comment = Home Directories
    browseable = no
    invalid users = nobody,@nobody
    writeable = yes

    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    # Set public = yes to allow user 'guest account' to print
    printable = yes
    guest ok = yes
    writable = no
    use client driver = yes

    # This one is useful for people to share files
    ;[tmp]
    ; comment = Temporary file space
    ; path = /tmp
    ; read only = no
    ; public = yes

    # A publicly accessible directory, but read only, except for people in
    # the "staff" group
    ;[public]
    ; comment = Public Stuff
    ; path = /home/samba
    ; public = yes
    ; read only = yes
    ; write list = @staff

    # Other examples.
    #
    # A private printer, usable only by fred. Spool data will be placed in fred's
    # home directory. Note that fred must have write access to the spool directory,
    # wherever it is.
    ;[fredsprn]
    ; comment = Fred's Printer
    ; valid users = fred
    ; path = /homes/fred
    ; printer = freds_printer
    ; public = no
    ; writable = no
    ; printable = yes

    # A private directory, usable only by fred. Note that fred requires write
    # access to the directory.
    ;[fredsdir]
    ; comment = Fred's Service
    ; path = /usr/somewhere/private
    ; valid users = fred
    ; public = no
    ; writable = yes
    ; printable = no

    # a service which has a different directory for each machine that connects
    # this allows you to tailor configurations to incoming machines. You could
    # also use the %u option to tailor it by user name.
    # The %m gets replaced with the machine name that is connecting.
    ;[pchome]
    ; comment = PC Directories
    ; path = /usr/pc/%m
    ; public = no
    ; writable = yes

    # A publicly accessible directory, read/write to all users. Note that all files
    # created in the directory by users will be owned by the default user, so
    # any user with access can delete any other user's files. Obviously this
    # directory must be writable by the default user. Another user could of course
    # be specified, in which case all files would be owned by that user instead.
    ;[public]
    ; path = /usr/somewhere/else/public
    ; public = yes
    ; only guest = yes
    ; writable = yes
    ; printable = no

    # The following two entries demonstrate how to share a directory so that two
    # users can place files there that will be owned by the specific users. In this
    # setup, the directory should be writable by both users and should have the
    # sticky bit set on it to prevent abuse. Obviously this could be extended to
    # as many users as required.
    ;[myshare]
    ; comment = Mary's and Fred's stuff
    ; path = /usr/somewhere/shared
    ; valid users = mary fred
    ; public = no
    ; writable = yes
    ; printable = no
    ; create mask = 0765
     
  8. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    the /tmp folder exists but i have tried my personal folder alas to
    no avail
     
  9. bmh.01

    bmh.01 What's a Dremel?

    Joined:
    7 Mar 2002
    Posts:
    149
    Likes Received:
    0
    Have you created that smb.conf file yourself as the config file I just posted was from a default fedora samba rpm install, I would recommend that you install Webmin as it allows you the administer samba via a web gui.
     
  10. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    I tried using the default andit didn't work, probably somthing up with my client, do u have to add n e settings to a win XP box to get it to work?
     
  11. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    ps webmin website doesn't seem to work.
     
  12. bmh.01

    bmh.01 What's a Dremel?

    Joined:
    7 Mar 2002
    Posts:
    149
    Likes Received:
    0
  13. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    This project is goingon hold for a few days, having to install XP again, lasted a long time this time, about a month.
     
  14. Olly

    Olly What's a Dremel?

    Joined:
    21 Mar 2003
    Posts:
    222
    Likes Received:
    0
    I'm a network/linux newbie as well and I'm also having problems getting Samba to work.

    I've got two XP machines on my network as well as the linux box. they were originally getting their IP addresses via DHCP from the router, but I'm trying them with static IP's at the moment to see if it helps (it doesn't).

    Although the XP machines and the Linux box can both use my network to access the intranet via ADSL, they can't see each other (I can't even ping one from the other). I guess the reason for this is because I'm using fixed IP's and the machines can't get a list of IP's from the router but I'm not sure.

    If DHCP would be better than using fixed IP's, i'd like the router to dole out IP's rather than the Linux box if this is feasible.

    On top of all this, I'm not even sure exactly what I need in the hosts file 'cos I don't have an internet domain name.

    Sorry if it sounds like I need someone to lead me by the hand here, but I've just started messing with Linux, and I'm well and truly stuck....

    Thanks,

    Olly :D
     
  15. Olly

    Olly What's a Dremel?

    Joined:
    21 Mar 2003
    Posts:
    222
    Likes Received:
    0
    I'm a network/linux newbie as well and I'm also having problems getting Samba to work.

    I've got two XP machines on my network as well as the linux box. they were originally getting their IP addresses via DHCP from the router, but I'm trying them with static IP's at the moment to see if it helps (it doesn't).

    Although the XP machines and the Linux box can both use my network to access the intranet via ADSL, they can't see each other (I can't even ping one from the other). I guess the reason for this is because I'm using fixed IP's and the machines can't get a list of IP's from the router but I'm not sure.

    If DHCP would be better than using fixed IP's, i'd like the router to dole out IP's rather than the Linux box if this is feasible.

    On top of all this, I'm not even sure exactly what I need in the hosts file 'cos I don't have an internet domain name.

    Sorry if it sounds like I need someone to lead me by the hand here, but I've just started messing with Linux, and I'm well and truly stuck....

    Thanks,

    Olly :D
     
  16. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    lo olly u got a fire wall running i.e. ip tables on the linux box cos that will stop the pings. I use static ips and have no problem now !tnks bmh.01!

    secondly i would like to know if this is prossible, and if possible how to do it. I would like the box to log into the server when i log into windows using my windows logon and password. martin
     
  17. Deviate

    Deviate What's a Dremel?

    Joined:
    3 Jun 2002
    Posts:
    1,515
    Likes Received:
    7
    Do you mean that you want your XP box to automatically log you onto the Samba "share" so that you can always access files from the linux box whenever you log onto to your XP box? Basically, you could map a drive to the Samba directory and have it reconnect at startup. Just make sure that your XP username and password are synched up between the XP box and the linux/samba box.
     
  18. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    yeah i wanna make logons a like we have at school, at the mo when i want to logon to the samba i have to type in the username and password even though they match up on both machines.
     
  19. Deviate

    Deviate What's a Dremel?

    Joined:
    3 Jun 2002
    Posts:
    1,515
    Likes Received:
    7
    I've never used XP so there might be something with that OS that I don't know about. But with 2000, I just have the Samba share, music for example, mapped as a network drive that reconnects at logon. Then I made sure that the username and password were identical between the two machines. I never have to enter a username and password. Maybe someone with more knowledge about XP will come along and can help. :sigh:
     
  20. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    just checked my passwords and they don't match, that will be the prob. going to try with matching passwords tonight
    :thumb:
     
Tags:

Share This Page