[Samba] Setting SePrintOperatorPrivilege

Kjetil Fleten kjetil at fleten.net
Fri Aug 25 12:36:46 UTC 2017


I'm trying to set SePrintOperatorPrivilege in Samba 4.6.7, in order to 
upload windows drivers from a Windows machine.

The command I use is:

/sudo net rpc rights grant "WORKGROUP.LOCAL\roedhaette" 
SePrintOperatorPrivilege -U "PRINTSERVER\roedhaette"/

The message I get is:

/Bad SMB2 signature for message//
//[0000] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00 ........ 
........//
//[0000] 55 BD 85 36 61 94 35 87   C7 3D 01 63 12 66 85 FF U..6a.5. 
.=.c.f..//
//Could not connect to server 127.0.0.1//
//Connection failed: NT_STATUS_ACCESS_DENIED/

The server name is Printserver, and the local domain is workgroup. The 
local user is roedhaette. This user is member of lpadmin, sudo and 
smbshare.

Output of testparm:

/# Global parameters//
//[global]//
//    interfaces = eth0//
//    server string = %h server (Samba, Ubuntu)//
//    workgroup = WORKGROUP.LOCAL//
//    log file = /var/log/samba/log.%m//
//    max log size = 1000//
//    syslog = 0//
//    panic action = /usr/share/samba/panic-action %d//
//    usershare allow guests = Yes//
//    map to guest = Bad User//
//    obey pam restrictions = Yes//
//    pam password change = Yes//
//    passwd chat = *Enter\snew\s*\spassword:* %n\n 
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .//
//    passwd program = /usr/bin/passwd %u//
//    security = USER//
//    server role = standalone server//
//    unix password sync = Yes//
//    dns proxy = No//
//    idmap config * : backend = tdb//
//    admin users = roedhaette//
//    hosts allow = all//
//
//
//[printers]//
//    comment = All Printers//
//    path = /var/spool/samba//
//    browseable = No//
//    printable = Yes//
//    create mask = 0700//
//
//
//[print$]//
//    comment = Printer Drivers//
//    path = /var/lib/samba/printers//
//    guest ok = Yes//
//    write list = roedhaette @lpadmin/

/
/

What might I be missing ?/
/

/
/

/
/


  /|
  |/




More information about the samba mailing list