Announcement

Collapse
No announcement yet.

How to connect Kub laptop to desktop wireles router with a win 7 and a USB printer?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to connect Kub laptop to desktop wireles router with a win 7 and a USB printer?

    My desktop is dual boot Win 7, Kubuntu 16.04. It's connected to a wireless router. The printer however is connected to a USB port on the computer. Thats the only connection it has. It will print from both OS's. I recently got a used laptop. It had Win 7 on it. When I connected to the wireless router it could find the printer with the proviso that the computer was booted into Windows. I installed Kubuntu 16.4 on the laptop and I can't figure out how to connect to the printer. I have Samba installed.

    "Settings-system settings- printers" can't find a printer and there is no choice for "network" as I have seen suggested to use in other posts. So I'm stuck.

    #2
    You can't just install SAMBA you have to configure it. Start by posting the contents of /etc/samba.smb.conf - and please, for sanity, put in inside CODE tags so it can be read easily. TY
    Last edited by Snowhog; Dec 22, 2016, 12:40 PM.

    Please Read Me

    Comment


      #3
      Ok here's the output. Let me know if this is what you meant by code tags. I used the format from another post. When I looked up inside Code tags on the net it mostly seemed to apply to posting detailed programing code clearly so that it could be checked by someone else. What I've posted is just the contents of the file you listed.

      Code:

      #
      # Sample configuration file for the Samba suite for Debian GNU/Linux.
      #
      #
      # 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 most of which
      # are not shown in this example
      #
      # Some options that are often worth tuning have been included as
      # commented-out examples in this file.
      # - When such options are commented with ";", the proposed setting
      # differs from the default Samba behaviour
      # - When commented with "#", the proposed setting is the default
      # behaviour of Samba but the option is considered important
      # enough to be mentioned here
      #
      # 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]

      ## Browsing/Identification ###

      # Change this to the workgroup/NT-domain name your Samba server will part of
      workgroup = WORKGROUP

      # server string is the equivalent of the NT Description field
      server string = %h server (Samba, Ubuntu)

      # Windows Internet Name Serving Support Section:
      # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
      # wins support = no

      # WINS Server - Tells the NMBD components of Samba to be a WINS Client
      # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
      ; wins server = w.x.y.z

      # This will prevent nmbd to search for NetBIOS names through DNS.
      dns proxy = no

      #### Networking ####

      # The specific set of interfaces / networks to bind to
      # This can be either the interface name or an IP address/netmask;
      # interface names are normally preferred
      ; interfaces = 127.0.0.0/8 eth0

      # Only bind to the named interfaces and/or networks; you must use the
      # 'interfaces' option above to use this.
      # It is recommended that you enable this feature if your Samba machine is
      # not protected by a firewall or is a firewall itself. However, this
      # option cannot handle dynamic or non-broadcast interfaces correctly.
      ; bind interfaces only = yes

      #### Debugging/Accounting ####

      # This tells Samba to use a separate log file for each machine
      # that connects
      log file = /var/log/samba/log.%m

      # Cap the size of the individual log files (in KiB).
      max log size = 1000

      # If you want Samba to only log through syslog then set the following
      # parameter to 'yes'.
      # syslog only = no

      # We want Samba to log a minimum amount of information to syslog. Everything
      # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
      # through syslog you should set the following parameter to something higher.
      syslog = 0

      # Do something sensible when Samba crashes: mail the admin a backtrace
      panic action = /usr/share/samba/panic-action %d

      ####### Authentication #######

      # Server role. Defines in which mode Samba will operate. Possible
      # values are "standalone server", "member server", "classic primary
      # domain controller", "classic backup domain controller", "active
      # directory domain controller".
      #
      # Most people will want "standalone sever" or "member server".
      # Running as "active directory domain controller" will require first
      # running "samba-tool domain provision" to wipe databases and create a
      # new domain.
      server role = standalone server

      # If you are using encrypted passwords, Samba will need to know what
      # password database type you are using.
      passdb backend = tdbsam

      obey pam restrictions = yes

      # This boolean parameter controls whether Samba attempts to sync the Unix
      # password with the SMB password when the encrypted SMB password in the
      # passdb is changed.
      unix password sync = yes

      # For Unix password sync to work on a Debian GNU/Linux system, the following
      # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
      # sending the correct chat script for the passwd program in Debian Sarge).
      passwd program = /usr/bin/passwd %u
      passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

      # This boolean controls whether PAM will be used for password changes
      # when requested by an SMB client instead of the program listed in
      # 'passwd program'. The default is 'no'.
      pam password change = yes

      # This option controls how unsuccessful authentication attempts are mapped
      # to anonymous connections
      map to guest = bad user

      ########## Domains ###########

      #
      # The following settings only takes effect if 'server role = primary
      # classic domain controller', 'server role = backup domain controller'
      # or 'domain logons' is set
      #

      # It specifies the location of the user's
      # profile directory from the client point of view) The following
      # required a [profiles] share to be setup on the samba server (see
      # below)
      ; logon path = \\%N\profiles\%U
      # Another common choice is storing the profile in the user's home directory
      # (this is Samba's default)
      # logon path = \\%N\%U\profile

      # The following setting only takes effect if 'domain logons' is set
      # It specifies the location of a user's home directory (from the client
      # point of view)
      ; logon drive = H:
      # logon home = \\%N\%U

      # The following setting only takes effect if 'domain logons' is set
      # It specifies the script to run during logon. The script must be stored
      # in the [netlogon] share
      # NOTE: Must be store in 'DOS' file format convention
      ; logon script = logon.cmd

      # This allows Unix users to be created on the domain controller via the SAMR
      # RPC pipe. The example command creates a user account with a disabled Unix
      # password; please adapt to your needs
      ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

      # This allows machine accounts to be created on the domain controller via the
      # SAMR RPC pipe.
      # The following assumes a "machines" group exists on the system
      ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

      # This allows Unix groups to be created on the domain controller via the SAMR
      # RPC pipe.
      ; add group script = /usr/sbin/addgroup --force-badname %g

      ############ Misc ############

      # Using the following line enables you to customise your configuration
      # on a per machine basis. The %m gets replaced with the netbios name
      # of the machine that is connecting
      ; include = /home/samba/etc/smb.conf.%m

      # Some defaults for winbind (make sure you're not using the ranges
      # for something else.)
      ; idmap uid = 10000-20000
      ; idmap gid = 10000-20000
      ; template shell = /bin/bash

      # Setup usershare options to enable non-root users to share folders
      # with the net usershare command.

      # Maximum number of usershare. 0 (default) means that usershare is disabled.
      ; usershare max shares = 100

      # Allow users who've been granted usershare privileges to create
      # public shares, not just authenticated ones
      usershare allow guests = yes

      #======================= Share Definitions =======================

      # Un-comment the following (and tweak the other settings below to suit)
      # to enable the default home directory shares. This will share each
      # user's home directory as \\server\username
      ;[homes]
      ; comment = Home Directories
      ; browseable = no

      # By default, the home directories are exported read-only. Change the
      # next parameter to 'no' if you want to be able to write to them.
      ; read only = yes

      # File creation mask is set to 0700 for security reasons. If you want to
      # create files with group=rw permissions, set next parameter to 0775.
      ; create mask = 0700

      # Directory creation mask is set to 0700 for security reasons. If you want to
      # create dirs. with group=rw permissions, set next parameter to 0775.
      ; directory mask = 0700

      # By default, \\server\username shares can be connected to by anyone
      # with access to the samba server.
      # Un-comment the following parameter to make sure that only "username"
      # can connect to \\server\username
      # This might need tweaking when using external authentication schemes
      ; valid users = %S

      # Un-comment the following and create the netlogon directory for Domain Logons
      # (you need to configure Samba to act as a domain controller too.)
      ;[netlogon]
      ; comment = Network Logon Service
      ; path = /home/samba/netlogon
      ; guest ok = yes
      ; read only = yes

      # Un-comment the following and create the profiles directory to store
      # users profiles (see the "logon path" option above)
      # (you need to configure Samba to act as a domain controller too.)
      # The path below should be writable by all users so that their
      # profile directory may be created the first time they log on
      ;[profiles]
      ; comment = Users profiles
      ; path = /home/samba/profiles
      ; guest ok = no
      ; browseable = no
      ; create mask = 0600
      ; directory mask = 0700

      [printers]
      comment = All Printers
      browseable = no
      path = /var/spool/samba
      printable = yes
      guest ok = no
      read only = yes
      create mask = 0700

      # Windows clients look for this share name as a source of downloadable
      # printer drivers
      [print$]
      comment = Printer Drivers
      path = /var/lib/samba/printers
      browseable = yes
      read only = yes
      guest ok = no
      # Uncomment to allow remote administration of Windows print drivers.
      # You may need to replace 'lpadmin' with the name of the group your
      # admin users are members of.
      # Please note that you also need to set appropriate Unix permissions
      # to the drivers directory for these users to have write rights in it
      ; write list = root, @lpadmin

      End Code:

      Comment


        #4
        Please use the "comment" or "code" boxes to paste large amounts of text into a message.
        [ quote ] [ /quote ] [ code ] [ /code ]

        but eliminate the spaces I've put inside the brackets to keep them from being active in this post.
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          No, code tags look like [ C O D E ] [ / C O D E ] except without the spaces. You can simply click the hash (or pound sign) in the editor toolbar to create the tags, then whatever you put between them looks like this:
          Code:
          [COLOR=#333333]#[/COLOR]
          [COLOR=#333333]# Sample configuration file for the Samba suite for Debian GNU/Linux.[/COLOR]
          [COLOR=#333333]#[/COLOR]
          [COLOR=#333333]#[/COLOR]
          [COLOR=#333333]# This is the main Samba configuration file. You should read the[/COLOR]
          [COLOR=#333333]# smb.conf(5) manual page in order to understand the options listed[/COLOR]
          [COLOR=#333333]# here. Samba has a huge number of configurable options most of which [/COLOR]
          [COLOR=#333333]# are not shown in this example[/COLOR]
          [COLOR=#333333]#[/COLOR]
          [COLOR=#333333]# Some options that are often worth tuning have been included as[/COLOR]
          [COLOR=#333333]# commented-out examples in this file.[/COLOR]
          [COLOR=#333333]# - When such options are commented with ";", the proposed setting[/COLOR]
          [COLOR=#333333]# differs from the default Samba behaviour[/COLOR]
          [COLOR=#333333]# - When commented with "#", the proposed setting is the default[/COLOR]
          [COLOR=#333333]# behaviour of Samba but the option is considered important[/COLOR]
          [COLOR=#333333]# enough to be mentioned here[/COLOR]
          [COLOR=#333333]#[/COLOR]
          [COLOR=#333333]# NOTE: Whenever you modify this file you should run the command[/COLOR]
          [COLOR=#333333]# "testparm" to check that you have not made any basic syntactic [/COLOR]
          [COLOR=#333333]# errors. [/COLOR]
          
          [COLOR=#333333]#======================= Global Settings =======================[/COLOR]
          
          [COLOR=#333333][global][/COLOR]
          
          [COLOR=#333333]## Browsing/Identification ###[/COLOR]
          
          [COLOR=#333333]# Change this to the workgroup/NT-domain name your Samba server will part of[/COLOR]
          [COLOR=#333333]workgroup = WORKGROUP[/COLOR]
          
          [COLOR=#333333]# server string is the equivalent of the NT Description field[/COLOR]
          [COLOR=#333333]server string = %h server (Samba, Ubuntu)[/COLOR]
          
          [COLOR=#333333]# Windows Internet Name Serving Support Section:[/COLOR]
          [COLOR=#333333]# WINS Support - Tells the NMBD component of Samba to enable its WINS Server[/COLOR]
          [COLOR=#333333]# wins support = no[/COLOR]
          
          [COLOR=#333333]# WINS Server - Tells the NMBD components of Samba to be a WINS Client[/COLOR]
          [COLOR=#333333]# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both[/COLOR]
          [COLOR=#333333]; wins server = w.x.y.z[/COLOR]
          
          [COLOR=#333333]# This will prevent nmbd to search for NetBIOS names through DNS.[/COLOR]
          [COLOR=#333333]dns proxy = no[/COLOR]
          
          [COLOR=#333333]#### Networking ####[/COLOR]
          
          [COLOR=#333333]# The specific set of interfaces / networks to bind to[/COLOR]
          [COLOR=#333333]# This can be either the interface name or an IP address/netmask;[/COLOR]
          [COLOR=#333333]# interface names are normally preferred[/COLOR]
          [COLOR=#333333]; interfaces = 127.0.0.0/8 eth0[/COLOR]
          
          [COLOR=#333333]# Only bind to the named interfaces and/or networks; you must use the[/COLOR]
          [COLOR=#333333]# 'interfaces' option above to use this.[/COLOR]
          [COLOR=#333333]# It is recommended that you enable this feature if your Samba machine is[/COLOR]
          [COLOR=#333333]# not protected by a firewall or is a firewall itself. However, this[/COLOR]
          [COLOR=#333333]# option cannot handle dynamic or non-broadcast interfaces correctly.[/COLOR]
          [COLOR=#333333]; bind interfaces only = yes[/COLOR]
          
          [COLOR=#333333]#### Debugging/Accounting ####[/COLOR]
          
          [COLOR=#333333]# This tells Samba to use a separate log file for each machine[/COLOR]
          [COLOR=#333333]# that connects[/COLOR]
          [COLOR=#333333]log file = /var/log/samba/log.%m[/COLOR]
          
          [COLOR=#333333]# Cap the size of the individual log files (in KiB).[/COLOR]
          [COLOR=#333333]max log size = 1000[/COLOR]
          
          [COLOR=#333333]# If you want Samba to only log through syslog then set the following[/COLOR]
          [COLOR=#333333]# parameter to 'yes'.[/COLOR]
          [COLOR=#333333]# syslog only = no[/COLOR]
          
          [COLOR=#333333]# We want Samba to log a minimum amount of information to syslog. Everything[/COLOR]
          [COLOR=#333333]# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log[/COLOR]
          [COLOR=#333333]# through syslog you should set the following parameter to something higher.[/COLOR]
          [COLOR=#333333]syslog = 0[/COLOR]
          
          [COLOR=#333333]# Do something sensible when Samba crashes: mail the admin a backtrace[/COLOR]
          [COLOR=#333333]panic action = /usr/share/samba/panic-action %d[/COLOR]
          
          [COLOR=#333333]####### Authentication #######[/COLOR]
          
          [COLOR=#333333]# Server role. Defines in which mode Samba will operate. Possible[/COLOR]
          [COLOR=#333333]# values are "standalone server", "member server", "classic primary[/COLOR]
          [COLOR=#333333]# domain controller", "classic backup domain controller", "active[/COLOR]
          [COLOR=#333333]# directory domain controller". [/COLOR]
          [COLOR=#333333]#[/COLOR]
          [COLOR=#333333]# Most people will want "standalone sever" or "member server".[/COLOR]
          [COLOR=#333333]# Running as "active directory domain controller" will require first[/COLOR]
          [COLOR=#333333]# running "samba-tool domain provision" to wipe databases and create a[/COLOR]
          [COLOR=#333333]# new domain.[/COLOR]
          [COLOR=#333333]server role = standalone server[/COLOR]
          
          [COLOR=#333333]# If you are using encrypted passwords, Samba will need to know what[/COLOR]
          [COLOR=#333333]# password database type you are using. [/COLOR]
          [COLOR=#333333]passdb backend = tdbsam[/COLOR]
          
          [COLOR=#333333]obey pam restrictions = yes[/COLOR]
          
          [COLOR=#333333]# This boolean parameter controls whether Samba attempts to sync the Unix[/COLOR]
          [COLOR=#333333]# password with the SMB password when the encrypted SMB password in the[/COLOR]
          [COLOR=#333333]# passdb is changed.[/COLOR]
          [COLOR=#333333]unix password sync = yes[/COLOR]
          
          [COLOR=#333333]# For Unix password sync to work on a Debian GNU/Linux system, the following[/COLOR]
          [COLOR=#333333]# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for[/COLOR]
          [COLOR=#333333]# sending the correct chat script for the passwd program in Debian Sarge).[/COLOR]
          [COLOR=#333333]passwd program = /usr/bin/passwd %u[/COLOR]
          [COLOR=#333333]passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .[/COLOR]
          
          [COLOR=#333333]# This boolean controls whether PAM will be used for password changes[/COLOR]
          [COLOR=#333333]# when requested by an SMB client instead of the program listed in[/COLOR]
          [COLOR=#333333]# 'passwd program'. The default is 'no'.[/COLOR]
          [COLOR=#333333]pam password change = yes[/COLOR]
          
          [COLOR=#333333]# This option controls how unsuccessful authentication attempts are mapped[/COLOR]
          [COLOR=#333333]# to anonymous connections[/COLOR]
          [COLOR=#333333]map to guest = bad user[/COLOR]
          
          [COLOR=#333333]########## Domains ###########[/COLOR]
          
          [COLOR=#333333]#[/COLOR]
          [COLOR=#333333]# The following settings only takes effect if 'server role = primary[/COLOR]
          [COLOR=#333333]# classic domain controller', 'server role = backup domain controller'[/COLOR]
          [COLOR=#333333]# or 'domain logons' is set [/COLOR]
          [COLOR=#333333]#[/COLOR]
          
          [COLOR=#333333]# It specifies the location of the user's[/COLOR]
          [COLOR=#333333]# profile directory from the client point of view) The following[/COLOR]
          [COLOR=#333333]# required a [profiles] share to be setup on the samba server (see[/COLOR]
          [COLOR=#333333]# below)[/COLOR]
          [COLOR=#333333]; logon path = \\%N\profiles\%U[/COLOR]
          [COLOR=#333333]# Another common choice is storing the profile in the user's home directory[/COLOR]
          [COLOR=#333333]# (this is Samba's default)[/COLOR]
          [COLOR=#333333]# logon path = \\%N\%U\profile[/COLOR]
          
          [COLOR=#333333]# The following setting only takes effect if 'domain logons' is set[/COLOR]
          [COLOR=#333333]# It specifies the location of a user's home directory (from the client[/COLOR]
          [COLOR=#333333]# point of view)[/COLOR]
          [COLOR=#333333]; logon drive = H:[/COLOR]
          [COLOR=#333333]# logon home = \\%N\%U[/COLOR]
          
          [COLOR=#333333]# The following setting only takes effect if 'domain logons' is set[/COLOR]
          [COLOR=#333333]# It specifies the script to run during logon. The script must be stored[/COLOR]
          [COLOR=#333333]# in the [netlogon] share[/COLOR]
          [COLOR=#333333]# NOTE: Must be store in 'DOS' file format convention[/COLOR]
          [COLOR=#333333]; logon script = logon.cmd[/COLOR]
          
          [COLOR=#333333]# This allows Unix users to be created on the domain controller via the SAMR[/COLOR]
          [COLOR=#333333]# RPC pipe. The example command creates a user account with a disabled Unix[/COLOR]
          [COLOR=#333333]# password; please adapt to your needs[/COLOR]
          [COLOR=#333333]; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u[/COLOR]
          
          [COLOR=#333333]# This allows machine accounts to be created on the domain controller via the [/COLOR]
          [COLOR=#333333]# SAMR RPC pipe. [/COLOR]
          [COLOR=#333333]# The following assumes a "machines" group exists on the system[/COLOR]
          [COLOR=#333333]; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u[/COLOR]
          
          [COLOR=#333333]# This allows Unix groups to be created on the domain controller via the SAMR[/COLOR]
          [COLOR=#333333]# RPC pipe. [/COLOR]
          [COLOR=#333333]; add group script = /usr/sbin/addgroup --force-badname %g[/COLOR]
          
          [COLOR=#333333]############ Misc ############[/COLOR]
          
          [COLOR=#333333]# Using the following line enables you to customise your configuration[/COLOR]
          [COLOR=#333333]# on a per machine basis. The %m gets replaced with the netbios name[/COLOR]
          [COLOR=#333333]# of the machine that is connecting[/COLOR]
          [COLOR=#333333]; include = /home/samba/etc/smb.conf.%m[/COLOR]
          
          [COLOR=#333333]# Some defaults for winbind (make sure you're not using the ranges[/COLOR]
          [COLOR=#333333]# for something else.)[/COLOR]
          [COLOR=#333333]; idmap uid = 10000-20000[/COLOR]
          [COLOR=#333333]; idmap gid = 10000-20000[/COLOR]
          [COLOR=#333333]; template shell = /bin/bash[/COLOR]
          
          [COLOR=#333333]# Setup usershare options to enable non-root users to share folders[/COLOR]
          [COLOR=#333333]# with the net usershare command.[/COLOR]
          
          [COLOR=#333333]# Maximum number of usershare. 0 (default) means that usershare is disabled.[/COLOR]
          [COLOR=#333333]; usershare max shares = 100[/COLOR]
          
          [COLOR=#333333]# Allow users who've been granted usershare privileges to create[/COLOR]
          [COLOR=#333333]# public shares, not just authenticated ones[/COLOR]
          [COLOR=#333333]usershare allow guests = yes[/COLOR]
          
          [COLOR=#333333]#======================= Share Definitions =======================[/COLOR]
          
          [COLOR=#333333]# Un-comment the following (and tweak the other settings below to suit)[/COLOR]
          [COLOR=#333333]# to enable the default home directory shares. This will share each[/COLOR]
          [COLOR=#333333]# user's home directory as \\server\username[/COLOR]
          [COLOR=#333333];[homes][/COLOR]
          [COLOR=#333333]; comment = Home Directories[/COLOR]
          [COLOR=#333333]; browseable = no[/COLOR]
          
          [COLOR=#333333]# By default, the home directories are exported read-only. Change the[/COLOR]
          [COLOR=#333333]# next parameter to 'no' if you want to be able to write to them.[/COLOR]
          [COLOR=#333333]; read only = yes[/COLOR]
          
          [COLOR=#333333]# File creation mask is set to 0700 for security reasons. If you want to[/COLOR]
          [COLOR=#333333]# create files with group=rw permissions, set next parameter to 0775.[/COLOR]
          [COLOR=#333333]; create mask = 0700[/COLOR]
          
          [COLOR=#333333]# Directory creation mask is set to 0700 for security reasons. If you want to[/COLOR]
          [COLOR=#333333]# create dirs. with group=rw permissions, set next parameter to 0775.[/COLOR]
          [COLOR=#333333]; directory mask = 0700[/COLOR]
          
          [COLOR=#333333]# By default, \\server\username shares can be connected to by anyone[/COLOR]
          [COLOR=#333333]# with access to the samba server.[/COLOR]
          [COLOR=#333333]# Un-comment the following parameter to make sure that only "username"[/COLOR]
          [COLOR=#333333]# can connect to \\server\username[/COLOR]
          [COLOR=#333333]# This might need tweaking when using external authentication schemes[/COLOR]
          [COLOR=#333333]; valid users = %S[/COLOR]
          
          [COLOR=#333333]# Un-comment the following and create the netlogon directory for Domain Logons[/COLOR]
          [COLOR=#333333]# (you need to configure Samba to act as a domain controller too.)[/COLOR]
          [COLOR=#333333];[netlogon][/COLOR]
          [COLOR=#333333]; comment = Network Logon Service[/COLOR]
          [COLOR=#333333]; path = /home/samba/netlogon[/COLOR]
          [COLOR=#333333]; guest ok = yes[/COLOR]
          [COLOR=#333333]; read only = yes[/COLOR]
          
          [COLOR=#333333]# Un-comment the following and create the profiles directory to store[/COLOR]
          [COLOR=#333333]# users profiles (see the "logon path" option above)[/COLOR]
          [COLOR=#333333]# (you need to configure Samba to act as a domain controller too.)[/COLOR]
          [COLOR=#333333]# The path below should be writable by all users so that their[/COLOR]
          [COLOR=#333333]# profile directory may be created the first time they log on[/COLOR]
          [COLOR=#333333];[profiles][/COLOR]
          [COLOR=#333333]; comment = Users profiles[/COLOR]
          [COLOR=#333333]; path = /home/samba/profiles[/COLOR]
          [COLOR=#333333]; guest ok = no[/COLOR]
          [COLOR=#333333]; browseable = no[/COLOR]
          [COLOR=#333333]; create mask = 0600[/COLOR]
          [COLOR=#333333]; directory mask = 0700[/COLOR]
          
          [COLOR=#333333][printers][/COLOR]
          [COLOR=#333333]comment = All Printers[/COLOR]
          [COLOR=#333333]browseable = no[/COLOR]
          [COLOR=#333333]path = /var/spool/samba[/COLOR]
          [COLOR=#333333]printable = yes[/COLOR]
          [COLOR=#333333]guest ok = no[/COLOR]
          [COLOR=#333333]read only = yes[/COLOR]
          [COLOR=#333333]create mask = 0700[/COLOR]
          
          [COLOR=#333333]# Windows clients look for this share name as a source of downloadable[/COLOR]
          [COLOR=#333333]# printer drivers[/COLOR]
          [COLOR=#333333][print$][/COLOR]
          [COLOR=#333333]comment = Printer Drivers[/COLOR]
          [COLOR=#333333]path = /var/lib/samba/printers[/COLOR]
          [COLOR=#333333]browseable = yes[/COLOR]
          [COLOR=#333333]read only = yes[/COLOR]
          [COLOR=#333333]guest ok = no[/COLOR]
          [COLOR=#333333]# Uncomment to allow remote administration of Windows print drivers.[/COLOR]
          [COLOR=#333333]# You may need to replace 'lpadmin' with the name of the group your[/COLOR]
          [COLOR=#333333]# admin users are members of.[/COLOR]
          [COLOR=#333333]# Please note that you also need to set appropriate Unix permissions[/COLOR]
          [COLOR=#333333]# to the drivers directory for these users to have write rights in it[/COLOR]
          [COLOR=#333333]; write list = root, @lpadmin[/COLOR]
          Much easier to read lengthy posts.

          Please Read Me

          Comment


            #6
            Try changing the no's to yes's in bold below and restart samba:

            Code:
            [printers]
            comment = All Printers
            browseable = [B]yes[/B]
            path = /var/spool/samba
            printable = yes
            guest ok = [B]yes[/B]
            read only = yes
            create mask = 0700
            
            [print$]
            comment = Printer Drivers
            path = /var/lib/samba/printers
            browseable = yes
            read only = yes
            guest ok = [B]yes[/B]

            Please Read Me

            Comment


              #7
              Hi Icharles.
              You can simply click the hash (or pound sign) in the editor toolbar to create the tags,
              So, you would copy and paste all your code text here (in your message), then highlight that block of text that you just pasted, then click that # pound sign in the editor toolbar -- and that will wrap your highlighted text with those two code tags. Or, to do it manually, do as the guys said and simply type the first code tag at the front of your code text, then type that second code tag (with the leading slash) at the very end of your code text, then click the Preview button to see how it looks prior to posting it (you might have to click the "Go Advanced" button and then the "Preview" button).
              An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

              Comment


                #8
                OK before going any further. I am having trouble adding code tags. Where is the editor toolbar that allows me to click on the "#" sign?

                I tried it manually according to Qmike's post and that seems to work , but the "highlight block..., then click on that # pound sign in the editor toolbar -- " is a problem for me.

                Comment


                  #9
                  I made the suggested changes to the smb.conf and restarted samba. Then I ran testparm:

                  Code:
                  landk@notX200:~$ sudo testparm
                  Load smb config files from /etc/samba/smb.conf
                  rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
                  WARNING: The "syslog" option is deprecated
                  Processing section "[printers]"
                  Processing section "[print$]"
                  Loaded services file OK.
                  Server role: ROLE_STANDALONE
                  
                  Press enter to see a dump of your service definitions
                  
                  # Global parameters
                  [global]
                        server string = %h server (Samba, Ubuntu)
                        server role = standalone server
                        map to guest = Bad User
                        obey pam restrictions = Yes
                        pam password change = Yes
                        passwd program = /usr/bin/passwd %u
                        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
                        unix password sync = Yes
                        syslog = 0
                        log file = /var/log/samba/log.%m
                        max log size = 1000
                        dns proxy = No
                        usershare allow guests = Yes
                        panic action = /usr/share/samba/panic-action %d
                        idmap config * : backend = tdb
                  
                  [printers]
                        comment = All Printers
                        path = /var/spool/samba
                        create mask = 0700
                        guest ok = Yes
                        printable = Yes
                        browseable = No
                  
                  [print$]
                        comment = Printer Drivers
                        path = /var/lib/samba/printers
                        guest ok = Yes
                  landk@notX200:~$
                  When I looked to see if anything had changed by going to the add printer in system settings

                  I get a dialog box that no printers have been configured or discovered, with the same choices as before for adding printers.

                  I've noticed in some older posts when checking for a printer there is an option to search for a network printer. That isn't an option listed in the add printer dialog.
                  Last edited by lcharles; Dec 26, 2016, 04:32 PM.

                  Comment


                    #10
                    I am having trouble adding code tags. Where is the editor toolbar that allows me to click on the "#" sign?
                    When you click Reply, you get a text box into which you type your response, right? At the top of that text box, there is a menu bar showing some formatting options, like Bold B, Italics I, Underline U, Font, Size, Smileys, etc. In that menu bar, there is the # sign (on mine, I see the # sign at the far right).

                    If you click the Go Advanced option (below the text box), you get your text box to type into, and you get maybe 3 menu bars above that text box. On mine, the # sign is in the second row of icons, at the far right.
                    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                    Comment


                      #11
                      Still says browesable=no

                      Please Read Me

                      Comment


                        #12
                        Well there's the rub. The smb.conf file is different than the output of testparm:

                        From the file /etc/samba/smb.conf:

                        Code:
                        # Un-comment the following and create the profiles directory to store
                        # users profiles (see the "logon path" option above)
                        # (you need to configure Samba to act as a domain controller too.)
                        # The path below should be writable by all users so that their
                        # profile directory may be created the first time they log on
                        ;[profiles]
                        ;   comment = Users profiles
                        ;   path = /home/samba/profiles
                        ;   guest ok = no
                        ;   browseable = no
                        ;   create mask = 0600
                        ;   directory mask = 0700
                        
                        [printers]
                          comment = All Printers
                          browseable = yes
                          path = /var/spool/samba
                          printable = yes
                          guest ok = yes
                          read only = yes
                          create mask = 0700
                        
                        # Windows clients look for this share name as a source of downloadable
                        # printer drivers
                        [print$]
                          comment = Printer Drivers
                          path = /var/lib/samba/printers
                          browseable = yes
                          read only = yes
                          guest ok = yes
                        # Uncomment to allow remote administration of Windows print drivers.
                        # You may need to replace 'lpadmin' with the name of the group your
                        # admin users are members of.
                        # Please note that you also need to set appropriate Unix permissions
                        # to the drivers directory for these users to have write rights in it
                        ;   write list = root, @lpadmin
                        From testparm:

                        Code:
                        landk@notX200:~$ sudo testparm 
                        [sudo] password for landk: *
                        Load smb config files from /etc/samba/smb.conf 
                        rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) 
                        WARNING: The "syslog" option is deprecated 
                        Processing section "[printers]" 
                        Processing section "[print$]" 
                        Loaded services file OK. 
                        Server role: ROLE_STANDALONE 
                        
                        Press enter to see a dump of your service definitions 
                        
                        # Global parameters 
                        [global] 
                        server string = %h server (Samba, Ubuntu) 
                        server role = standalone server 
                        map to guest = Bad User 
                        obey pam restrictions = Yes 
                        pam password change = Yes 
                        passwd program = /usr/bin/passwd %u 
                        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssu
                        ccessfully* . 
                        unix password sync = Yes 
                        syslog = 0 
                        log file = /var/log/samba/log.%m 
                        max log size = 1000 
                        dns proxy = No 
                        usershare allow guests = Yes 
                        panic action = /usr/share/samba/panic-action %d 
                        idmap config * : backend = tdb 
                        
                        [printers] 
                        comment = All Printers 
                        path = /var/spool/samba 
                        create mask = 0700 
                        guest ok = Yes 
                        printable = Yes 
                        browseable = No 
                        
                        [print$] 
                        comment = Printer Drivers 
                        path = /var/lib/samba/printers 
                        guest ok = Yes 
                        landk@notX200:~$

                        Comment


                          #13
                          Try changing browseable back to No and adding available = Yes below it.

                          Please Read Me

                          Comment


                            #14
                            Didn't seem to work:

                            From smb.conf:

                            Code:
                            [printers]
                             comment = All Printers
                             browseable = yes
                             path = /var/spool/samba
                             printable = yes
                             guest ok = yes
                             read only = yes
                             create mask = 0700
                            
                            # Windows clients look for this share name as a source of downloadable
                            # printer drivers
                            [print$]
                             comment = Printer Drivers
                             path = /var/lib/samba/printers
                             browseable = no
                             available = yes
                             read only = yes
                             guest ok = yes
                            # Uncomment to allow remote administration of Windows print drivers.
                            # You may need to replace 'lpadmin' with the name of the group your
                            # admin users are members of.
                            # Please note that you also need to set appropriate Unix permissions
                            # to the drivers directory for these users to have write rights in it
                            ;   write list = root, @lpadmin
                            From testparm:

                            Code:
                            [printers]
                                  comment = All Printers
                                  path = /var/spool/samba
                                  create mask = 0700
                                  guest ok = Yes
                                  printable = Yes
                                  browseable = No
                            
                            [print$]
                                  comment = Printer Drivers
                                  path = /var/lib/samba/printers
                                  guest ok = Yes
                                  browseable = No
                            landk@notX200:~$

                            Comment


                              #15
                              try it in the [printers] section

                              Please Read Me

                              Comment

                              Working...
                              X