Glenn T. Arnold
2010-Jan-12 21:17 UTC
[Samba] printcap cache time using registry config on Ubuntu 9.04 samba 3.3.2
I have been reading the man page on printcap cache time setting and have some questions. How much load does this put on a server if you have the setting less then 60? The reason I have this setting less than 60 is when I use an all registry samba configuration the printers do not show up if you browse the server or when you goto the Windows XP pc with the printer already connect shows printer status opening, but if you wait the default time period that samba sets for the printcap cache time the printer will eventually show up under the server. When I used the smb.conf file I did not observer this behavior. The reason I am using the all registry conf is to save some memory on the server. I have observed this behavior on another customers server with the same version ubuntu. The printcap cache time setting less than 60 seems to fix the issue or mask the issue enough to be liveable, but I want to make sure that I am not missing anything in configuring samba. Here is my config. [HKEY_LOCAL_MACHINE\SOFTWARE\Samba\smbconf\global] "server string"="" "dos charset"="850" "unix charset"="ISO8859-1" "workgroup"="MYDOMAIN" "interfaces"="bond0, lo" "passdb backend"="ldapsam:ldap://myserver01.mthcs.net" "passwd program"="/usr/sbin//smbldap-passwd %u" "username map"="/etc/samba/smbusers" "syslog"="0" "time server"="Yes" "socket options"="IPTOS_THROUGHPUT TCP_NODELAY" "add user script"="/usr/sbin//smbldap-useradd -m \"%u\"" "delete user script"="/usr/sbin//smbldap-userdel \"%u\"" "add group script"="/usr/sbin//smbldap-groupadd -p \"%g\"" "delete group script"="/usr/sbin//smbldap-groupdel \"%g\"" "add user to group script"="/usr/sbin//smbldap-groupmod -m \"%u\" \"%g\"" "delete user from group script"="/usr/sbin//smbldap-groupmod -x \"%u\" \"%g\"" "set primary group script"="/usr/sbin//smbldap-usermod -g \"%g\" \"%u\"" "add machine script"="/usr/sbin//smbldap-useradd -w \"%u\"" "logon script"="wkix32.exe logon.kix" "logon path"="" "logon drive"="h:" "logon home"="" "domain logons"="Yes" "os level"="60" "preferred master"="Yes" "domain master"="No" "wins server"="10.100.0.10" "lanman auth"="yes" "ldap admin dn"="cn=admin,dc=mthcs,dc=net" "ldap delete dn"="Yes" "ldap group suffix"="ou=Groups" "ldap idmap suffix"="ou=Users" "ldap machine suffix"="ou=Computers" "ldap passwd sync"="Yes" "ldap suffix"="dc=mthcs,dc=net" "ldap user suffix"="ou=Users" "ldap ssl"="no" "add share command"="/usr/bin/modify_samba_config.pl" "change share command"="/usr/bin/modify_samba_config.pl" "delete share command"="/usr/bin/modify_samba_config.pl" "utmp"="Yes" "idmap uid"="10000-20000" "idmap gid"="10000-20000" "printing"="cups" "printcap name"="cups" "force printername"="Yes" "default devmode"="no" "wins support"="no" "smb ports"="139" "usershare max shares"="0" "log level"="0" "printcap cache time"="30" [HKEY_LOCAL_MACHINE\SOFTWARE\Samba\smbconf\print$] "comment"="Printer Drivers" "path"="/var/lib/samba/printers" "write list"="\"@Domain Admins\", root" [HKEY_LOCAL_MACHINE\SOFTWARE\Samba\smbconf\printers] "comment"="All Printers" "path"="/var/spool/samba" "guest ok"="Yes" "printable"="Yes" "browseable"="No" Thanks -Glenn
Glenn T. Arnold
2010-Jan-13 13:10 UTC
[Samba] printcap cache time using registry config on Ubuntu 9.04 samba 3.3.2
I went back to smb.conf file instead of registry, because the printers were delayed showing when you browsed for the server on the network or if the printer is already connected it would take a while tell the printer would say ready instead of opening. when using the registry config. Has anybody seen this before? Thanks -Glenn ----- Original Message ----- From: "Glenn T. Arnold" <garnold at unrealsolutions.com> To: "Samba" <samba at lists.samba.org> Sent: Tuesday, January 12, 2010 4:17:47 PM Subject: [Samba] printcap cache time using registry config on Ubuntu 9.04 samba 3.3.2 I have been reading the man page on printcap cache time setting and have some questions. How much load does this put on a server if you have the setting less then 60? The reason I have this setting less than 60 is when I use an all registry samba configuration the printers do not show up if you browse the server or when you goto the Windows XP pc with the printer already connect shows printer status opening, but if you wait the default time period that samba sets for the printcap cache time the printer will eventually show up under the server. When I used the smb.conf file I did not observer this behavior. The reason I am using the all registry conf is to save some memory on the server. I have observed this behavior on another customers server with the same version ubuntu. The printcap cache time setting less than 60 seems to fix the issue or mask the issue enough to be liveable, but I want to make sure that I am not missing anything in configuring samba. Here is my config. [HKEY_LOCAL_MACHINE\SOFTWARE\Samba\smbconf\global] "server string"="" "dos charset"="850" "unix charset"="ISO8859-1" "workgroup"="MYDOMAIN" "interfaces"="bond0, lo" "passdb backend"="ldapsam:ldap://myserver01.mthcs.net" "passwd program"="/usr/sbin//smbldap-passwd %u" "username map"="/etc/samba/smbusers" "syslog"="0" "time server"="Yes" "socket options"="IPTOS_THROUGHPUT TCP_NODELAY" "add user script"="/usr/sbin//smbldap-useradd -m \"%u\"" "delete user script"="/usr/sbin//smbldap-userdel \"%u\"" "add group script"="/usr/sbin//smbldap-groupadd -p \"%g\"" "delete group script"="/usr/sbin//smbldap-groupdel \"%g\"" "add user to group script"="/usr/sbin//smbldap-groupmod -m \"%u\" \"%g\"" "delete user from group script"="/usr/sbin//smbldap-groupmod -x \"%u\" \"%g\"" "set primary group script"="/usr/sbin//smbldap-usermod -g \"%g\" \"%u\"" "add machine script"="/usr/sbin//smbldap-useradd -w \"%u\"" "logon script"="wkix32.exe logon.kix" "logon path"="" "logon drive"="h:" "logon home"="" "domain logons"="Yes" "os level"="60" "preferred master"="Yes" "domain master"="No" "wins server"="10.100.0.10" "lanman auth"="yes" "ldap admin dn"="cn=admin,dc=mthcs,dc=net" "ldap delete dn"="Yes" "ldap group suffix"="ou=Groups" "ldap idmap suffix"="ou=Users" "ldap machine suffix"="ou=Computers" "ldap passwd sync"="Yes" "ldap suffix"="dc=mthcs,dc=net" "ldap user suffix"="ou=Users" "ldap ssl"="no" "add share command"="/usr/bin/modify_samba_config.pl" "change share command"="/usr/bin/modify_samba_config.pl" "delete share command"="/usr/bin/modify_samba_config.pl" "utmp"="Yes" "idmap uid"="10000-20000" "idmap gid"="10000-20000" "printing"="cups" "printcap name"="cups" "force printername"="Yes" "default devmode"="no" "wins support"="no" "smb ports"="139" "usershare max shares"="0" "log level"="0" "printcap cache time"="30" [HKEY_LOCAL_MACHINE\SOFTWARE\Samba\smbconf\print$] "comment"="Printer Drivers" "path"="/var/lib/samba/printers" "write list"="\"@Domain Admins\", root" [HKEY_LOCAL_MACHINE\SOFTWARE\Samba\smbconf\printers] "comment"="All Printers" "path"="/var/spool/samba" "guest ok"="Yes" "printable"="Yes" "browseable"="No" Thanks -Glenn -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba