PO Box 1214 • La Pine • Oregon • 97739 • 541-410-2760

 

M
a
i
n

Home

  • Tech Notes
  • Showcase
  • What We Do
  • Downloads
  • Store
  • IMO
  • Contact Us
  •  
    Samba printing with Windows 7

    Samba printing with Windows 7

    Uploading a printer driver

    This is the directory structure in drivers directory:

    The normal directory structure for your printer drivers looks like:

    drwxr-xr-x   2 root root  96 Feb 24 20:02 COLOR
    drwxr-xr-x   2 root root  48 Feb 24 20:02 IA64
    drwxr-xr-x   2 root root  48 Feb 24 20:02 W32ALPHA
    drwxr-xr-x   2 root root  48 Feb 24 20:02 W32MIPS
    drwxr-xr-x   2 root root  48 Feb 24 20:02 W32PPC
    drwxr-xr-x   3 root root  72 Feb 24 20:02 W32X86
    drwxr-xr-x   2 root root  48 Feb 24 20:02 WIN40
    drwxr-xr-x   2 root root  48 Feb 24 20:02 x64
    

    You have to create it yourself. Here is a command line which does it. You only have to change the value of BASEDIR:

    BASEDIR=/var/lib/samba/drivers;
    for X in COLOR IA64 W32ALPHA W32MIPS W32PPC W32X86 WIN40 x64; do 
      mkdir -p $BASEDIR/$X;
    done

    How to configure a printer admin user or group

    Use the following command to give a user or group the printer admin capability:

     net rpc rights grant "<domain|hostname>\<user|group>" SePrintOperatorPrivilege -U <hostname>/root
    

    Example:

     net rpc rights grant "server\admin" SePrintOperatorPrivilege -U server/root
    

    This mean the user "admin" is granted printer admin rights by the user "root" on the hostname "server"

     

    References:

    1. Samba as a print server on Samba WIKI.