[Samba] printers keep stopping

2011-12-20 Thread Joe Konecny

I am running Samba 3.5.8 on Ubuntu 11.04 with lpr for printing.
For reasons unknown, about 1-4 times a month at seemingly random
times, a printer will stop working.  If I try to send a test page,
windows reports that there was a problem sending the test page.
To fix it I edit /etc/printcap and comment out the offending
printer, save printcap, wait about 30 seconds and then uncomment
the printer and save printcap.  That's it.  Then the printer starts
working again.  Does anyone have any ideas on what would cause this?





[global]
workgroup = ENDOR
map to guest = Bad User
passwd chat =
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
smb ports = 139
add user script = useradd -s /bin/false  %u
add user to group script = /usr/sbin/adduser %u %g
	add machine script = /usr/sbin/useradd -N -g machines -c Machine -d 
/var/lib/samba -s /bin/false %u

logon script = logon.bat
logon path =
logon drive = G:
logon home = \\%L\%U
domain logons = Yes
preferred master = Yes
domain master = Yes
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
printing = bsd
print command = lpr -r -P'%p' %s
lpq command =
lprm command = lprm -P'%p' %j

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[VOL1]
path = /usr/vol1
read only = No
inherit permissions = Yes
oplocks = No
vfs objects = recycle
recycle:directory_mode = 700
recycle:exclude = *.tmp,*.temp
recycle:keeptree = yes
recycle:repository = .recycle/%U
recycle:touch = yes
recycle:versions = yes

[netlogon]
path = /usr/vol1/netlogon
browseable = No

[homes]
comment = Home Directories
read only = No
create mask = 0740
browseable = No
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] edited tdb... restart samba?

2006-02-16 Thread Joe Konecny

Gerald (Jerry) Carter wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joe wrote:

I had to remove reference to some printer drivers
via tdbtool on ntdrivers.tdb.

1. Do I need to restart smbd and nmbd to make these
changes take effect?

2. If I restart smbd and nmbd will connected users get
disconnected?


No.  smbd will pick up the changes.



My system is leading me to believe otherwise however
I am on 3.0.4.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Printer requires bidirectional support

2005-04-29 Thread Joe Konecny
I have a Zebra 2844 label printer.  I set it up the way I
normally do for all printers with printcap.
p54|Zebra LP2844 - Shipping Labels:\
:sh:\
:rm=10.0.0.31:\
:sd=/var/spool/output/lpd/p54:\
:rp=portlf1:
This wouldn't work however.  So I tried to print directly
to the ip address.  That works fine but only if you have
bidirectional enabled in the windows print driver.  I'm not
sure what to do since once windows has handed the job off
to samba and it's sitting in the queue there's nothing
more to do.  Can't lpd somehow provide the "bidirectional"
support to this printer?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] windows copy versus move

2005-04-08 Thread Joe Konecny
Running 3.0.4 on FreeBSD 5.2.1...
I have two directories...
drwxrwxr-x  root data_current  /usr/vol1/current
drwxrwx---  root data_current  /usr/vol1/hold
If a file is in /usr/vol1/hold with the following
attributes...
-rwxrwx---  root data_hold  file1
...and a user MOVES it to /usr/vol1/current it
has the following attributes...
-rwxrwx---  root data_hold  file1
...if the user COPIES (then deletes the original)
it to /usr/vol1/current it has the following
attributes...
-rwxrw-r-- root data_current file1
(I'm not sure why the execute bit disappears
but I think that is ok)
Is there any way I can make the windows
MOVE command work like COPY/DELETE?

[global]
	workgroup = ENDOR
	time server = Yes
	add user script = pw useradd %u -g nt_domain_users -c %c
	delete user script = pw userdel %u
	add group script = pw groupadd %g
	delete group script = pw groupdel %g
	add user to group script = pw groupmod %g -m %u
	delete user from group script = /usr/sbin/delete_user_from_group %g %u
	set primary group script = pw usermod %u -g %g
	add machine script = pw useradd  %u -g samba_machine_id -s 
/sbin/nologin -d /nonexistant
	shutdown script = x
	abort shutdown script = x
	logon script = logon.bat
	logon path =
	logon drive = G:
	logon home = \\%L\%u\.profiles\%m
	domain logons = Yes
	os level = 65
	preferred master = Yes
	domain master = Yes
	ldap ssl = no
	admin users = root
	write list = root
	printer admin = jim
	create mask = 0750
	print command = lpr -r -P%p %s
	oplocks = No
	level2 oplocks = No

[VOL1]
path = /usr/vol1
read only = No
inherit permissions = Yes
[netlogon]
path = /usr/vol1/netlogon
browseable = No
[homes]
read only = No
create mask = 0740
browseable = No
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] upgrading 3.0.4 to 3.0.13

2005-03-24 Thread Joe Konecny
I've searched using google and also look at samba.org
and cannot seem to find any instructions on how
to upgrade from a 3.x version to current.  Everything
out there is how to upgrade from a 2.x version.  Do
I just have to recompile and nothing else?  Do I have
to stop smbd and nmdb first or just restart them? Reboot?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Removing printer drivers?

2005-02-03 Thread Joe Konecny
Gerald (Jerry) Carter wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Joe Konecny wrote:
|> In use on the server means that they are assigned
|> to a printer.
|
| Assigned to a printer on a client?
Nope.  Assigned to a printer on the server.  You night
need to use use tdbtool on ntprinters.tdb and delete
any records for printers that no longer exist.
The printer that I want to remove the driver for
still exists.  I just no longer want to have
them on the server.  Should I still look at it with
tdbtool?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Removing printer drivers?

2005-02-03 Thread Joe Konecny
Gerald (Jerry) Carter wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, 2 Feb 2005, Joe Konecny wrote:

I have installed windows printer drivers and it worked but now I need to 
remove several.  I have tried everything I can find but nothing will get 
rid of them.  Using "remove" from a winxp machine in "server properties" 
won't work.  It claims they are in use.  I'm not sure what "in use" 
means.  Nothing is printing and the drivers should be local.  I've tried 
the rpc client and it gives errors which I cannot post because I'm not 
near the machine now but I believe it too states something about being 
in use.  Any tips? 

In use on the server means that they are assigned to a printer.
Assigned to a printer on a client?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Removing printer drivers?

2005-02-02 Thread Joe Konecny
I have installed windows printer drivers and it worked
but now I need to remove several.  I have tried everything
I can find but nothing will get rid of them.  Using
"remove" from a winxp machine in "server properties"
won't work.  It claims they are in use.  I'm not sure
what "in use" means.  Nothing is printing and the drivers
should be local.  I've tried the rpc client and it gives
errors which I cannot post because I'm not near the
machine now but I believe it too states something about
being in use.  Any tips?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Allow users to delete from read-only share?

2004-10-29 Thread Joe Konecny
When using Netware I had two directories set up as follows...
1. /data/cad/current
2. /data/cad/hold
I had three groups that controlled access to these directories.
Group A had read-only access to 1.
Group B had read-only and delete access on 1 and read-write on 2.
Group C had read-write on both 1 and 2.
Group A was typically shop floor employees who needed to
view cad drawings.  The reason for group B was so that an
engineer could take a cad drawing file and remove it from 1.
and place it in 2. so that no one could access it while it
was being modified.  When the modifications were complete
and approved a user from group C could put it back.
I cannot figure out any way to do this with Samba.  Any tips?
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba