[Samba] rpcclient and setdriver

Gerald Carter jerry at samba.org
Fri Jul 19 05:39:02 GMT 2002


On Tue, 16 Jul 2002, David Morel wrote:

> Hello,
> 
> I'm trying to use rpcclient 'setdriver'  as an unprivileged user; a 
> special lpadmin user with very limited rights has been created, and 
> ownership of the location of driver files (/home/PrintDrivers) given to him.
> 
> when executing the smbclient and rpc commands like cupsaddsmb does, 
> nearly everything works fine, except the last command:
> when i issue an rpcclient localhost -U "lpadmin%password" -c "setdriver 
> printer printerdriver" , it fails with an NT_STATUS_UNSUCCESSFUL
> 
> if i issue the same command using root%rootpassword (after setting the 
> proper options in smb.conf!)  it succeeds.
> I tried changing ownership of some .tdb files, but no way.

See the "printer admin" parameter in smb.conf(5).  Also check out the 
details listed in the Printing HOWTO (in Samba-HOWTO-Collection.pdf).





cheers, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba mailing list