AIX Open Source

 View Only
Expand all | Collapse all

How to set smbclient 4.16.5 to send print job without authentication

  • 1.  How to set smbclient 4.16.5 to send print job without authentication

    Posted Fri March 17, 2023 09:57 AM

    Environment: AIX 7200-05-03-2136


    Problem:
    The old machine run with samba client version 3.6.25 and Oracle app could print to Windows without passing username, password.


       $ smbclient //R12-AM/epson -c print /tmp/printtest.txt' 

    The new machine run on AIX 7.2 TL5 SP3, upgraded Oracle and samba client version 4.16.5. 
    The print job could be printed only when passing username/password for authentication.

    ---------------------------------------------
      <<fail>> $ smbclient //R12-AM/epson -c print /tmp/printtest.txt'
      <<success>> $ smbclient //R12-AM/epson -A /tmp/user.txt -c print /tmp/printtest.txt'

    ---------------------------------------------

    File /tmp/user.txt
      username = <username>
      password = <password>
    ---------------------------------------------

    - smb.conf on old machine Samba version 3.6.25
    ####################################
    [global]
    workgroup = DOMAIN
    server string = ahsw03r11 Samba Server
    printcap name = /etc/printcap
    load printers = yes
    log file = /var/log/samba/log.%m
    max log size = 50
    security = server
    password server = srithai05
    encrypt passwords = no
    smb passwd file = /etc/smbpasswd
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    name resolve order = host lmhosts wins bcast
    wins support = yes
    dns proxy = no
     
    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    guest ok = no
    writable = no
    printable = yes
    ####################################

    smb.conf on new machine Samba version 4.16.5
    ---------------------------------------------
    # Global parameters
    [global]
            guest account = srithai
            log file = /var/log/samba/log.%m
            max log size = 50
            security = USER
            server string = Samba Server Version %v
            idmap config * : backend = tdb
            cups options = raw
     
    [homes]
            browseable = No
            comment = Home Directories
            read only = No
     
    [printers]
            browseable = No
            comment = All Printers
            guest ok = Yes
            path = /var/spool/samba
            printable = Yes 
    ####################################

    There are a lot of users to send print jobs and it's difficult to change the smbclient command option for all users to send an authentication.

    Customer would like to submit print job as previously with command below.

        $ smbclient //R12-AM/epson -c print /tmp/printtest.txt

    How to set samba client version 4.16.5 to print without passing username/password for authentication?

    Thanks so much for your help.



    ------------------------------
    Premvadee K.
    ------------------------------


  • 2.  RE: How to set smbclient 4.16.5 to send print job without authentication

    Posted Mon March 20, 2023 09:00 AM

    There is on line documentation on SAMBA and AIX and with new security rules it may or may not be possible.

     

    https://developer.ibm.com/articles/au-aix_samba/






  • 3.  RE: How to set smbclient 4.16.5 to send print job without authentication

    Posted Wed March 22, 2023 12:15 AM

    Thanks so much to Minesh. 

    Customer uninstalled samba version 4.16 and installed samba version 4.1. Then the previous command without passing user/password authentication can print as samba version 3.6.

        $ smbclient //R12-AM/epson -c print /tmp/printtest.txt



    ------------------------------
    Premvadee K.
    ------------------------------