[Samba] Automatic Printer Driver Download Access Denied

Dietrich Restemeyer Dietrich.Restemeyer at t-online.de
Wed Jan 8 22:13:00 GMT 2003


On Tuesday 07 January 2003 23:23, Frank Ling wrote:
> Hi,
>
> I have a problem for implementing automatic printer driver download on
> Samba 2.2.7a. When I tried to upload printer drivers from a Windows 2000
> client, I could see the printers were uploaded to the printer driver
> directory W32X86 under Unix. However, When I tried to apply those
> changes to the printer driver, I got “printer settings could not be
> saved, Access is denied”.
>
> The samba is Samba 2.2.7a on a Linux. I tried on Solaris version also,
> but I got the same result. Here is some information from smb.conf:
>
> [global]
>
> printer admin = @rdp,atdadmin,help
>
> [print$]
>     path = /etc/samba/pdrivers
>     guest ok = yes
>     browseable = yes
>     read only = yes
>     write list = @rdp,help,atdadmin
>
>
> 5 rerun:/etc/samba-> ls -al
> total 84
> drwxr-xr-x    3 root     root         4096 Jan  7 15:01 ./
> drwxr-xr-x   72 root     root         8192 Jan  7 15:12 ../
> -rw-r--r--    1 root     root           20 Dec 11 02:32 lmhosts
> drwxr-xr-x    3 atdadmin root         4096 Nov 15 14:24 pdrivers/
> -rw-r--r--    1 root     root          776 Dec 11 02:32 recycle.conf
> -rw-r--r--    1 root     root          120 Dec 11 02:32 samba-block.conf
> -rw-------    1 root     root         8192 Jan  7 15:01 secrets.tdb
> -rw-r--r--    1 root     root        10667 Oct 29 11:53 smb10-29-02.conf
> -rw-r--r--    1 root     root        15571 Jan  7 15:01 smb.conf
> -rw-r--r--    1 root     root        10731 Oct 16 13:02 smb.conf.rpmnew
> -rw-------    1 root     root          666 Dec 31 15:52 smbpasswd
> -rw-r--r--    1 root     root           97 Dec 11 02:32 smbusers
>
> The samba was on a Windows 2000 active directory. It acted as a member
> server for files/printing. I used “atdadmin” account for doing uploading
> printer drivers from a Windows 2000 client machine.
>
> Please help!
>
> Frank

Do you have 
add printer command= <youraddprinterscript>
in smb.conf ?
my looks like:
--------------------------------------------------------------
#!/bin/bash
# Script zum anlegen eines Sambadruckers mit cups
#$1 = Ausführlicher Druckername
#$2 = Drucker/Queue/Share-Name
#$5 = Ort des Druckers
#
/usr/sbin/lpadmin -p "$2" -D "$1" -L "$5"
echo "Samba Printer Port"
---------------------------------------------------------------
the generated printer has to be modified with the cups
web interface to confirm the right interface to the printer:
/dev/lp0 or something else.

Didi





More information about the samba mailing list