Re: FC3 - trying to join a Windows Workgroup

From: Ivan Marsh (annoyed_at_you.now)
Date: 05/16/05

  • Next message: Joerg Reinhardt: "IP over ieee1394"
    Date: Mon, 16 May 2005 13:07:54 -0500
    
    

    On Sat, 14 May 2005 21:14:37 +0000, Leythos wrote:

    > In article <3els5hF3ov6lU1@individual.net>, gordonbp1
    > @yahoo.co.uk.invalid says...
    >> Ivan Marsh wrote:
    >> > On Fri, 13 May 2005 18:10:20 +0100, Gordon Burgess-Parker wrote:
    >> >
    >> >>I've installed Samba and it's running. I need a step-by-step guide on
    >> >>what I need to configure to join a Windows Workgroup.
    >> >
    >> > WORKGROUP=<your workgroup name> in /etc/samba/smb.conf
    >> >
    >> > service smb restart
    >> >
    >> >>Also some information on what I should expect to see when I do join the
    >> >>workgroup - the other machines are using Windows XP and NTFS formatted
    >> >>HDD.
    >> >
    >> > You won't see anything.
    >> >
    >> > man smb.conf
    >> >
    >> So how do I share data on the Windows box with the Linux one?
    >
    > I have many windows servers and have not been able to get this working
    > either - I can see the Windows shares from my FC3 box, but the FC3 user
    > only has read permission, not the permissions assigned on the Windows
    > server box (windows 2003 server).

    Okay... well, contrary to unpopular belief and a lot of traffic on the
    newsgroups SAMBA and XP work and play just fine with each other even if
    SP2 is installed.

    The quick and dirty SAMBA setup guide:

    First things first, make it part of a workgroup:

    WORKGROUP=MYWORKGROUP - should be caps and the exact name of the workgroup
    or domain your windows boxes are in. This should NOT be over eight
    characters or have any spaces or underscores in it. (though, otherwise, it
    may work with linux, and probably will; these rules were established for
    NT 4.0, not Linux)

    Check hosts allow:

    hosts allow=<host or network> - if commented out all hosts are allowed.

    Check browsemaster/domainmaster sections.

    Most of these options can be left default without affecting function. I
    like to turn most of it off because I'm connected to a MS domain that
    takes care of all this stuff just fine.

    Create a share:

    [test]
    comment = This is a test share
    browseable = yes # will show up in network neighborhood
    path = /var/test
    valid users = @users # allow access for the "users" group
    public = no # must have explicit rights to share (no guest)
    writeable = yes
    printable = no # ALL non-printers should have this entry
    create mask = 0660
    directory mask = 0770

    Restart the service:

    service smb restart.

    Create your samba/windows account mapping with smbpasswd. This tells samba
    what windows user to map to what linux user.

    At this point you should be able to see your linux box in the network
    neighborhood with a share "test".

    If you can't:

    Run testparm - this will evaluate your /etc/samba/smb.conf and tell you if
    you have any errors in it.

    Is the firewall on your Linux box blocking the traffic?

    Is the firewall on your XP box blocking the traffic? ...REMEMBER: if
    you've loaded service pack 2 for XP your machine is blocking ALL ACK and
    broadcast traffic to your machine by default. I don't use the SP2/XP
    firewall because it's, well, a complete POS. I use the free version of the
    Sygate firewall on my Windows boxes because it allows for a more flexible,
    easier setup.

    If it still doesn't work:

    Do you have a domain name resolution issue with either machine? If a
    machine can't identify itself to itself it can't be expected to
    identify itself to any other machine. Check your Windows boxes and make
    sure their host files, DNS servers, routes, etc are correct. Check the
    same on the linux box (/etc/hosts, /etc/resolve.conf).

    BTW: the default for the /etc/hosts file on some Linux distros are
    incorrect, or at least, not correct enough for some software to run
    correctly. I think they do it this way by default so that everything
    will work at install. This is in the form:

    127.0.0.1 localhost.localdomain localhost <myrealhostname>.<myrealdomain>
    <myrealhostname>

    This, in my opinion, is a malformed hosts file and it doesn't surprise me
    that some things don't work.

    the hosts file should be:

    127.0.0.1 localhost.localdomain localhost
    <myrealip> <myrealhostname>.<myrealdomain> <myrealhostname?

    The first form makes all traffic hit the loopback before it gets to the
    correct interface. The second form properly segregates loopback and
    network traffic and should even improve performance in general.

    Assuming all this has been done you shouldn't be able to tell the
    difference between your SAMBA server and any Windows box on your network
    (except maybe the SAMBA server doesn't fail quite as much... sorry, had to.)

    Beyond this you're out of the normal *gotcha* stuff for SAMBA and some
    detail troubleshooting will have to be done.

    Once you have this working I'll be happy to work out the: "well, now I can
    see the share but it always says access denied" question.

    -- 
    Life is short, but wide. -KV
    

  • Next message: Joerg Reinhardt: "IP over ieee1394"

    Relevant Pages

    • Re: Linux is as buggy as Windows
      ... > gives his opinion and you attack him too. ... Not just Linux, so don't think I'm ... > and details what I've already suspected and stated countless times before- that Micro$oft is playing BigBrother at its Windows Update Sites. ... databases, spread-sheets, games, webservers, ftp servers, secure-shell ...
      (comp.security.misc)
    • Re: [SLE] Cant find NT Box and Printer with YaST - update
      ... Next we setup a simple share with SAMBA and attempted to copy a file from ... We invoked the Network Neighborhood and found the SuSE box, ... >and Linux client/Windows server. ... >Linux client is the easier case, assuming that the Windows printer is working ...
      (SuSE)
    • Re: Short List of Security Questions
      ... IIS 6 on Windows Server 2003 is hacked far ... frequently than Apache on Linux. ... automated methods to ease pushing patches, including to critical servers. ... file system which could almost take a bullet. ...
      (microsoft.public.security)
    • Re: OT: LInux stuff again
      ... Not compatible with large systems like Win2003 servers, Novell etc; can't really be used in large networks, doesn't have proper administration of workstations in larger scale (this is what out techies say; the company is running literally thousands of machines and a horde of prorgrams over network and remote access to servers etc...they say even attempting a dozen computers with Linux is a laugh - not meant for serious business use at all. ... I can affirm that I administer lots of Linux servers within the company I work for and they shit all over Windows. ... Despite stable and 'safe' it's easy to screw up the entire system by just doing something like trying to get a soundcard to work (personally e.g. tried to install stuff past Synaptic and pretty soon the whole system crashed personally) ...
      (alt.guitar)
    • Re: Dell sells more Linux servers than Windows at the moment
      ... Indeed, it has been a very rare thing, when I have deployed any heavy server applications on Wintel servers. ... The only difference now is that many former Big Iron from firms like IBM and Sun are now running on x86/x64 boxes that are running Solaris 10 or Linux. ... Windows boxes are used sometimes as file sharing, print servers, Web Servers, or some special Windows operation type boxes. ...
      (borland.public.delphi.non-technical)