[Samba] lprng printing fails to connect to cups

2013-10-10 Thread Francesc Guasch
Hi. I have a debian wheezy with samba 3.6.6-6. Before
updating to wheezy I had samba configured with LPRNG
printing.

Now I can't use the printers, it looks like samba is
trying to connect to cups even it is configured with
another printing system.

This is the error spotted when I try to install the
printer in a Windows 7 PC. Windows XP works fine.

 printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL


Here is the config:

printing = lprng
print command = a=`echo '%J' | sed -e s/^.*-// -e s/(//g -e s/)//g 
`  ;  /usr/bin/lpr -U%U@%M -P%p -J$a   %s;  rm %s
lpq command = /usr/bin/lpq -U%U@%M -P%p
lprm command = /usr/bin/lprm -U%U@%M -P%p %j
lppause command = lpc hold '%p' %j
lpresume command = lpc release '%p' %j
queuepause command = lpc stop '%p'
queueresume command = lpc start '%p'

Any hints ? thank you very much.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] lprng printing fails to connect to cups

2013-10-10 Thread Francesc Guasch

El 10/10/13 12:09, Francesc Guasch ha escrit:

Hi. I have a debian wheezy with samba 3.6.6-6. Before
updating to wheezy I had samba configured with LPRNG
printing.

Now I can't use the printers, it looks like samba is
trying to connect to cups even it is configured with
another printing system.


I missed one log line:

  printing/print_cups.c:110(cups_connect)
Unable to connect to CUPS server localhost:631 - Connection refused

  printing/print_cups.c:487(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

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


[Samba] changing account flags to W

2011-05-16 Thread Francesc Guasch
Hi. I have some machines that I can't log in anymore.

I think I changed their accounts to User accounts by mistake. Now
pdebedit show the U flag instead W.

I tried to change it like this:

# pdbedit -c='[W]' machine-211$
Can only set [NDHLX] flags

I tried also to recreate one machine account.
I removed the account with smbpasswd -x , and added it again,
but it won't login. I guess it is because the SID changed. I tried
setting the SID again:

# pdbedit -U S-1-5-21-64316383-546362030-1349479702-81176 -u machine-214$
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Unable to modify entry!

- Is there a way to turn those users to machines ?
- Can I change that SID somehow ?

This is Samba 3.2.5 on Debian Lenny.

Thank you very much.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] cached logons

2007-06-14 Thread Francesc Guasch
En/na Rubin Bennett ha escrit:

Hi Rubin, thank you for your answer.

 On Wed, 2007-06-13 at 10:57 +0200, Francesc Guasch wrote:
 Hi. I can't do cached logons in our new samba server.

 I have several sites with Samba PDCs that have laptop/ mobile users who
 use their cached credentials regularly to most of the time, and it
 simply works.  I haven't had to change a thing on the samba side for it

That's what puzzled me. Finally I found this :

http://www.nabble.com/Offline-logon-from-Winxp-2000-Client-doesn't-work-t3696504.html

Typing pdbedit -LV username I see the Domain is not the current
domain but the hostname. That only happens to some of the users.
I don't know why.

I changed it so domain is the real domain name and it works.

pdbedit --domain=newdomainnamehere username

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


[Samba] cached logons

2007-06-13 Thread Francesc Guasch
Hi. I can't do cached logons in our new samba server.

I had a dead crashed W2k server quickly replaced by samba-3.
That meant create a new domain, restore backups and add all the
PCs to the domain. It was impossible to ressurrect the old MS server.

Anyway I'm facing a problem about cached logons. There is no way
to make it work. I've been reading all the entries in the mailing
list archives and MS information about it unsuccessfully.

First of all, some people said in the archives that samba can't
do cached logons, that's later refuted by people who log all
the summer in a networkless computer. So it looks it should work.

Is there something required in the samba server to make it work ?
We have no ldap. Remote profiles were allowed the first day
but now it is turned off.

I've checked the registry here. It was 10 now 50. Nothing changed.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\Winlogon\

   ValueName: CachedLogonsCount
   Data Type: REG_SZ
   Values: 0 - 50

The former windows admin said he changed nothing to make it work in
w2k. It just worked.

Clients are Windows XP.
Server is a debian etch, samba-3.0.24-6. An extract from smb.conf:

[global]
obey pam restrictions = Yes
passdb backend = tdbsam
logon script = \usuari\%U.bat
logon drive = Z:
logon home = \\%N\netlogon
domain logons = Yes
domain master = Yes
dns proxy = No
wins support = Yes

[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
write list = @admin
guest ok = Yes


Any hint will be really appreciated.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] maximum password age

2006-01-02 Thread Francesc Guasch

En/na nik600 ha escrit:

On 12/23/05, Alessandro [EMAIL PROTECTED] wrote:

 # pdbedit -P maximum password age -C 1003089564
 # smbpasswd storm
 New SMB password:
 Retype new SMB password:
 # pdbedit -v -u storm | grep must
 Password must change: mar, 06 ott 2037 18:38:54 GMT



hmm... i've tried to change the password from the windows client, not with



the smbpasswd utility, maybe the problem is this!


Hi. I too have been dealing lately with this issue. It started
working, but when I messed wit the settingsit stopped working.
Today I gave it another random try and it worked again, when
I mess with it again, the date didn't change anymore.

When I try it the very first time I changed the backend to tdbsam
it worked fine untill I started changing passwords and ages.
I got stuck and I was unable to change the policy, even following
the exact commands as Alessandro wrote.

Anyway, today I gave it another try and surprisingly it worked.
I configured:
  maximum password age -C 1003089564

Then it didn't show the 1901 date:

   Password must change: Fri, 16 Oct 2037 16:44:01 GMT.

Then I set it to 24 hrs ( 86400 ), I change the password with
smbpasswd, so I see:

   Password must change: Tue, 03 Jan 2006 19:47:37 GMT

Then I try to set it to a different number, no matter what I
try it won't change.

Tomorrow I expect it asks me to change my password, I wish then
I set it to another number and see what happens.

My feeling is there is something slightly broken there. But maybe
if you just set an expiration age and don't mess with it, it just
works. About using smbpasswd or windows, I think it's not important
I made it work changing from windows once, though I try it more
with smbpasswd because it's easier to type.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] smbpasswd and password sync

2005-12-15 Thread Francesc Guasch

Hi. I wanted to test password sync. I only have one linux
server, with no windows PCs around. When I change the
password with smbpasswd the sync is not executed. I wonder
why ? Maybe smbpasswd access directly the database.

Is there a way I can test it from within only one linux box ?

This is ubuntu hoary, with samba 3.0.10-1. samba config :

unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n .

passdb backend = tdbsam

I tried both
  pam password change = yes
and no.

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


[Samba] cleaning messages.tdb

2005-04-12 Thread Francesc Guasch
I have a drive almost full because of the messages.tdb problem
with print queue. I will upgrade samba, but , how can I clean
it quick ?

I searched the mailing list archives and I didn't find it.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Windows XP slow with samba-2.2.7 from RH7.3

2003-07-24 Thread Francesc Guasch
Richard Coates wrote:
we have no problems with around 30 xp-pro clients to one samba server.
(samba 2.2.8). Maybe hardware issue?
Hi Richard, thank you for answering me. I don't think so,
this same PC works fine with other network servers W2k.
On Tue, 2003-07-22 at 20:09, Francesc Guasch wrote:

Hi.

I posted last week a question about a network with some XP PCs.
One PC connects fine to the samba server, but the other one
is quite slow, almost unusable. There are also Win98 hosts
running fine.


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


[Samba] Windows XP slow with samba-2.2.7 from RH7.3

2003-07-22 Thread Francesc Guasch
Hi.

I posted last week a question about a network with some XP PCs.
One PC connects fine to the samba server, but the other one
is quite slow, almost unusable. There are also Win98 hosts
running fine.
Someone kindly answered he had the same problem, and solved it
upgrading to samba-3 beta. I can't put beta software on this
server.
Do I have any other option ?

Here is an extract of the smb.conf file:

[global]
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   local  master = no
   domain master = no
   preferred master = no
   dns proxy = no
All the other is set by default.

Thank you for your time.

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


[Samba] XP slow with samba-2.2.7 from RH 7.3

2003-07-14 Thread Francesc Guasch
I'm having problems with one Windows XP working with a
samba server.
This is redhat-7.3 with latest samba-2.2.7-3.7.3. There are some
windows 98 PCs running fine. There is two Windows XP clients, and
one of them isn't working well with samba. The user complains the
access to the files is quite slow.
the log of this PC grow a lot. One of the entries that
happen more is this one:
 smbd/sec_ctx.c:set_sec_ctx(328)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
Sometimes there are 50 or more entries of this line. Then :
  smbd/trans2.c:call_trans2qfilepathinfo(1700)
   call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
I've been running it with debug level 3 but I'm overwhelmed
and I don't know what to search. I just turned debug back to
level 2.
Any hints ?

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


[Samba] Many processes per user

2003-03-06 Thread Francesc Guasch
I have a samba server that starts creating a lot
of processes for each connected user, until it
renders the system unusable. Then restarting samba
solves it all.
The last time it crashed I saw 10-12 processes
per user. The number of processes keeps growing until
we restarted samba.
Right now it's working but I see there are 25
of smbd from root. That wasn't happening before.
I recall there was only one root process.
This is
  redhat-release-7.3-1
  kernel-2.4.17
  samba-2.2.7-1.7.3
In addition I see there is an ugly duplicated samba
rpm installed. But when I connect to samba it tells
me it's 2.2.7
rpm -q samba returns : samba-2.2.4-2  samba-2.2.7-1.7.3
I'm checking the logs looking for something weird.
The mailing list archives didn't help me.
Any hints ?

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


Re: [Samba] Found MS-Word 97 Samba bug : diagnostic found!

2003-02-14 Thread Francesc Guasch


Do you mean that way I've to install ntpd and sync date/hour mechanism 
between samba server and clients?

It's always a good idea to have the workstations in sync.
Type this in a .bat file, that loads at start:

NET TIME \\SERVER /SET /YES

--
frankie

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



[Samba] Failed to parse ACL smbcacls

2003-02-12 Thread Francesc Guasch Ortiz
I'm trying to set up a Samba server with ACLS.
Versions:
	- xfs in kernel-2.4.20.
	- samba-2.2.7a compiled with ACL support

I'm trying first with smbcacls. But I can't manage to
guess the syntax of the ACL command.

I want the user frankie could RWX a file owned by javi

#smbcacls //localhost/public te1st.txt -A ACL:frankie:0/0/RWX -U javi

Failed to parse ACL ACL:frankie

I read carefully the smbcacls man page and searched for
examples in the archives and the web unsuccessfully.

I tried many different things in the SID field with the same results:

DOPAN//frankie   ( DOPAN is the DOMAIN )
DOPAN/frankie
DOPAN\\frankie
DOPANfrankie
DOPAN\\frankie

and so on ... with the same results.


Anyway I tried to connect to the share from a W2000.
I can add security options to the file, but won't work.
I tried to set a file read only but I can remove it.

Any hint or link would be appreciated.


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



Re: [Samba] Samba and Printing

2002-10-04 Thread Francesc Guasch

Gareth Davies wrote:
 This is probably a pretty lame questions, but say I've got a HP 4500N 
 colour laser, I can access it as I'm on Win2k and I can add a default 
 TCP/IP port and print raw to it.
  
 But the clients on Win 98 cannot, how would I 'connect' samba to this 
 printer so it was shared and they could get to it?
  
 Is it very difficult to do?
The first time is a little bit harder, but it's easy.

  Do I need to locate linux drivers for the
no
 printer or can I just print direct via lpr?
yes

 Is there any guides on how to do this?
There is a document about debugging printing issues with
samba, mine is in :
/usr/share/doc/samba-/docs/textdocs/Printing.txt

Basically you have to config the printer in the linux
server. As soon as you can print from the command line
you must add a printer entry in smb.conf.
See also examples/printing in the samba docs.

-- 
frankie

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



[Samba] ugly messages in log.smbd

2002-09-23 Thread Francesc Guasch

Hi. I have a samba server SunOS 5.6
This is samba-2.2.2, some times some users get slow
responses from the server,and the other day we had to
restart the computer. I found this in the logs.

Any hints about what is happening ?

I'm starting to prepare an upgrade, but its a bare
server and it'll be a hard job to install a compiler
and all the tools for building the latests sources.

[2002/09/19 12:43:08, 0] smbd/connection.c:yield_connection(62)
[2002/09/19 12:43:08, 0] smbd/connection.c[:2002/09/19 
12:43:08yield_connection[, 
0[(62[2002/09/19
 
12:43:08] 2002/09/19 12:43:08)
2002/09/19 12:43:082002/09/19 12:43:082002/09/19 12:43:082002/09/19 
12:43:082002/09/19 12:43:082002/09/19 12:43:082002/09/19 
12:43:082002/09/19 12:43:082002/09/19 12:43:082002/09/19 
12:43:082002/09/19 12:43:082002/09/19 12:43:082002/09/19 
12:43:082002/09/19 12:43:082002/09/19 12:43:082002/09/19 
12:43:082002/09/19 12:43:082002/09/19 12:43:082002/09/19 
12:43:082002/09/19 12:43:082002/09/19 12:43:082002/09/19 
12:43:082002/09/19 12:43:082002/09/19 12:43:082002/
nnection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connection.csmbd/connectio

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