Adam Williams
2003-Oct-02 13:31 UTC
[Samba] Unable to enable Add/Remove Printer Drivers (3.0.0)
I used to be able to load printer drivers via "server properties". Now when I go in the printer drivers are listed and I can use the properties button but the Add/Remove buttons are greyed out. This is a Samba 3.0.0/2.4.2-SGI_XFS_1.0 box and I've tried both NT4sp6 and Win2003beta clients (both exhibit the same behaviour). I see the following in the log when I connect to "\\barbel\Printers and Faxes" [2003/10/02 09:06:04, 0] smbd/connection.c:register_message_flags(220) register_message_flags: tdb_fetch failed [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) ERROR: NULL dest in safe_strcpy [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) ERROR: NULL dest in safe_strcpy [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) ERROR: NULL dest in safe_strcpy [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) ERROR: NULL dest in safe_strcpy [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) ERROR: NULL dest in safe_strcpy [2003/10/02 09:06:06, 0] lib/util_str.c:safe_strcpy_fn(573) ERROR: NULL dest in safe_strcpy [2003/10/02 09:06:06, 0] lib/util_str.c:safe_strcpy_fn(573) ERROR: NULL dest in safe_strcpy ... This message repeats alot ... [2003/10/02 09:06:52, 0] smbd/service.c:make_connection(847) win2003 (192.168.1.180) couldn't find service ::{2227a280-3aea-1069-a2de-08002b30309d} [2003/10/02 09:06:56, 1] smbd/service.c:close_cnum(876) win2003 (192.168.1.180) closed connection to service print$ My [print$] looks like - [print$] path = /usr/local/pcnet/printers guest ok = yes browseable = yes read only = no create mask = 0644 directory mask = 0755 force user = pcnet force group = cis And I've set all the permissions wide open to try and get this to work. "net rpc user info adam -S littleboy -U adam" shows my user as a member of the "Print Operators" group, which my potentially flawed understanding I though gave me Print Administrative rights. [root@littleboy samba]# ldapsearch cn=printadmin dn: cn=printadmin,ou=Groups,o=Morrison Industries, c=US objectClass: posixGroup objectClass: top objectClass: morrisongroup objectClass: sambaGroupMapping cn: printadmin gidNumber: 1007 memberUid: adam memberUid: rhopkins memberUid: steve memberUid: barnosky memberUid: brown memberUid: darrell allowprimary: N displayName: Print Operators sambaSID: S-1-5-21-2037442776-3290224752-88127236-550 sambaGroupType: 2 description: Printer Administrators
Adam Williams
2003-Oct-03 15:34 UTC
[Samba] Unable to enable Add/Remove Printer Drivers (3.0.0)
> I used to be able to load printer drivers via "server properties". Now > when I go in the printer drivers are listed and I can use the properties > button but the Add/Remove buttons are greyed out. This is a Samba > 3.0.0/2.4.2-SGI_XFS_1.0 box and I've tried both NT4sp6 and Win2003beta > clients (both exhibit the same behaviour). > I see the following in the log when I connect to "\\barbel\Printers and > Faxes" > [2003/10/02 09:06:04, 0] smbd/connection.c:register_message_flags(220) > register_message_flags: tdb_fetch failed > [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) > ERROR: NULL dest in safe_strcpy > [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) > ERROR: NULL dest in safe_strcpy > [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) > ERROR: NULL dest in safe_strcpy > [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) > ERROR: NULL dest in safe_strcpy > [2003/10/02 09:06:05, 0] lib/util_str.c:safe_strcpy_fn(573) > ERROR: NULL dest in safe_strcpy > [2003/10/02 09:06:06, 0] lib/util_str.c:safe_strcpy_fn(573) > ERROR: NULL dest in safe_strcpy > [2003/10/02 09:06:06, 0] lib/util_str.c:safe_strcpy_fn(573) > ERROR: NULL dest in safe_strcpy > ... > This message repeats alot > ... > [2003/10/02 09:06:52, 0] smbd/service.c:make_connection(847) > win2003 (192.168.1.180) couldn't find service > ::{2227a280-3aea-1069-a2de-08002b30309d} > [2003/10/02 09:06:56, 1] smbd/service.c:close_cnum(876) > win2003 (192.168.1.180) closed connection to service print$I fixed this. I rebuilt 3.0.0 and made sure every bit of previous releases except the TDB files and smb.conf where gone. Then re-ran "make install". Start up samba and was able to connect and manipulate the print drivers via APW/"Server Properties". Some bit of one of the rc releases must have been lying around is my only guess (we used rc1 - rc4 in production).