Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: Samba : setting up and tweaking

  1. #1
    Join Date
    Oct 2008
    Location
    near the Alps
    Posts
    577

    Question Samba : setting up and tweaking

    Hi all ;=)

    i'm following the tips from Samba and Suse: HowTo Set up an openSUSE-Windows Home Office LAN/Network. Versions 10, 11 to set up samba and tweak it to my needs.

    Could you please help me for a few questions ?

    In my [global] section :

    ->i don't understand why i haven't got the 1st line (workgroup = ...) , see my smb.conf (1) .
    Where do i see the default name for the workgroup ?
    Has it to be the same as in Windows ?


    ->Is netbios name important to set ?
    is this the only place where to set it ?

    ->Is name resolve order important ?


    Thanks



    (1) the beginning of my smb.conf file :

    # smb.conf is the main Samba configuration file. You find a full commented
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    # Date: 2009-06-24

    [global]

    printcap name = cups
    cups options = raw
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = Yes
    usershare max shares = 100
    usershare owner only = False
    openSUSE Leap 15.3 , KDE Plasma

  2. #2
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: Samba : setting up and tweaking

    ->i don't understand why i haven't got the 1st line (workgroup = ...) , see my smb.conf (1) .
    Where do i see the default name for the workgroup ?
    Has it to be the same as in Windows ?
    It must be the same as in windows. Just edit in in by opening the file in a text editor and typing in this:
    Code:
    workgroup = whatever_is_in_windows
    You can open it with an editor with this command if using Gnome:
    Code:
    gnomesu gedit /etc/samba/smb.conf
    or for KDE it's
    Code:
    kdesu kwrite /etc/samba/smb.conf
    ->Is netbios name important to set ?
    is this the only place where to set it ?
    yes and yes. You can use other GUI devices to create the netbios name, but all of them just put it in [global] so you might as well use the easy GUI which is "kdesu kwrite" (or gnomesu gedit). as outlined above.

    ->Is name resolve order important ?
    yes. Don't use the default -- it's wrong for workgroups with windows, use this
    Code:
    name resolve order = bcast host lmhosts wins
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  3. #3
    Join Date
    Oct 2008
    Location
    near the Alps
    Posts
    577

    Default Re: Samba : setting up and tweaking

    Hello

    Thanks for the precious tools on your site, i've been following them : "easy share", lan primer.

    The suse part is now ok but Windows untill now can't see the linux shares. I think we need to create a local network with the wizards on windows.





    From the ipp sharing method for printers i have another problem for the windows part :
    I can't add my local suse printer (HP psc 1210) in windows client as a network printer so far :

    i can ping suse from windows, http:/opensuse111:631/printers works ok in windows' firefox,
    i installed the driver with the printer cd rom in windows, even plugged the printer to finish up some update for i'm using an old cd (win 98 and 2000) .

    But when i'm trying to add the network printer i can't see the right model : i have HP psc 1200 series and only 1500 & 1600 series are available .
    In Windows the wizard shows a port 9100 as default, is it 9100 or 631 (?).
    Shall i open some ports ?

    At this point the "Have disk" option is unclear for me for i'm not quite sure what file i'm supposed to take from the cd rom (?)
    openSUSE Leap 15.3 , KDE Plasma

  4. #4
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: Samba : setting up and tweaking

    The suse part is now ok but Windows untill now can't see the linux shares. I think we need to create a local network with the wizards on windows.
    Check that you have opened the firewall on openSUSE for Samba (or turn it off for the time being as a diagnostic test).
    Please show us the contents of your file smb.conf

    I'm confused about the printer. Is it attached to Linux machine or to windows machine?
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  5. #5
    Join Date
    Jun 2008
    Location
    /earth/europe/uk/england/west-yorkshire/leeds/mystreet/myhouse
    Posts
    248

    Default Re: Samba : setting up and tweaking

    Is this Windows XP or Vista?

  6. #6
    Join Date
    Oct 2008
    Location
    near the Alps
    Posts
    577

    Default Re: Samba : setting up and tweaking

    Hi

    About opening firewall for Samba :
    i put my eth0 interface in the external zone, and added for it 2 services as mentionned (netbios server and samba server ; also cups for the ipp printer share).
    Do i also need to open some ports for Samba ?





    About the printer :
    It's a usb printer : Hp Psc 1210, it's attached to the opensuse 11.1 desktop pc.

    the client is a windows 7 version.

    here's the smb.conf :
    [/codebox]

    # smb.conf is the main Samba configuration file. You find a full commented
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    # Date: 2009-06-24

    [global]

    workgroup = WORKGROUP
    netbios name = opensuse111
    name resolve order = bcast host lmhosts wins

    printcap name = cups
    cups options = raw
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = Yes
    usershare max shares = 100
    usershare owner only = False

    local master = yes
    preferred master = yes
    os level = 65

    [homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    browseable = No
    read only = No
    inherit acls = Yes

    [profiles]
    comment = Network Profiles Service
    path = %H
    read only = No
    store dos attributes = Yes
    create mask = 0600
    directory mask = 0700

    [users]
    comment = All users
    path = /home
    read only = No
    inherit acls = Yes
    veto files = /aquota.user/groups/shares/

    [groups]
    comment = All groups
    path = /home/groups
    read only = No
    inherit acls = Yes

    [printers]
    comment = All Printers
    path = /var/tmp
    printable = Yes
    create mask = 0600
    browseable = No

    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @ntadmin root
    create mask = 0664
    directory mask = 0775

    [PARTAGE]
    path = /home/fabrice/partage/
    guest ok = yes
    read only = no

    [codebox/]
    openSUSE Leap 15.3 , KDE Plasma

  7. #7
    PV NNTP User

    Default Re: Samba : setting up and tweaking

    On Thu August 20 2009 01:06 pm, manchette fr wrote:

    >
    > Hi
    >
    > About opening firewall for Samba :
    > i put my eth0 interface in the external zone, and added for it 2
    > services as mentionned (netbios server and samba server ; also cups for
    > the ipp printer share).
    > Do i also need to open some ports for Samba ?
    >
    >
    >
    >
    >
    > About the printer :
    > It's a usb printer : Hp Psc 1210, it's attached to the opensuse 11.1
    > desktop pc.
    >
    > the client is a windows 7 version.
    >
    > here's the smb.conf :
    >

    <snip>

    manchette fr;

    1. While testing disable the firewalls on both SuSE and Windows, by default
    most 3rd party Windows firewalls disable Windows Networking.

    These are the ports Samba needs to have open on your OpenSuSE box (and
    Windows)
    TCP: 135, 139, 445
    UDP: 137,138

    You also need to allow broadcasts.

    2. In order to access Samba shares you will need to add add Samba Users with
    Code:
    su
    smbpasswd -a <username>
    Where "username" is the name of a valid linux user.

    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

  8. #8
    Join Date
    Oct 2008
    Location
    near the Alps
    Posts
    577

    Default Re: Samba : setting up and tweaking

    Hi,



    About broadcast :
    i saw i gave the wrong network , mine goes with 192.168.0.x
    (i had 192.168.1.x ), i changed it.


    i opened the ports in suse, i did also in the router, still need to open the ports in windows firewall (it's eset smart security firewall).



    i'm afraid of disabling the firewall in windows, this os being targeted a lot by hackers ...
    openSUSE Leap 15.3 , KDE Plasma

  9. #9
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: Samba : setting up and tweaking

    Quote Originally Posted by manchette_fr View Post
    Hi,

    About broadcast :
    i saw i gave the wrong network , mine goes with 192.168.0.x
    (i had 192.168.1.x ), i changed it......
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  10. #10
    PV NNTP User

    Default Re: Samba : setting up and tweaking

    On Fri August 21 2009 11:26 am, manchette fr wrote:

    >
    > Hi,

    <snip>
    >
    >
    >
    > i'm afraid of disabling the firewall in windows, this os being targeted
    > a lot by hackers ...
    >


    manchette fr;

    Dropping the firewall for the few minutes it takes to test should not elevate
    your risk to much. To be absolutely certain just disconnect your router's
    WAN port, or even use a hub/switch locally and bypass the router altogether.
    If you are not connected to the Internet and your machines are clean there is
    no need for a firewall.
    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

Page 1 of 4 123 ... LastLast

Tags for this Thread

Posting Permissions

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