Re: [Samba] Acces Denied to shared printer on linux using Windows XP

2003-03-04 Thread Tim Kubricht
Jonny,
  I had a similar problem last week from Windows 2000  Windows NT:  I 
did not receive your
  smb.conf file so you can look at the info below to see if it matches.

  Also See the message from Stephen below in regards to the use 
client driver = yes option.
  You may be able to print even though the printers window shows
   Access denied, Cannot connect to printer
  I do not have Windows-XP to test this But this might fix your problem

  From man smb.conf  I did a search for /use client which stats that 
if you do not upload printer
  drivers into samba then you will get the access denied, unable to 
connect message in the printer
  queue window even though jobs may successfully be printed.  And it 
says that
  disable spoolss = yes does the same behavior as the use client 
driver = yes option.

Regards,
Tim
===
Content-return: prohibited
Date: Wed, 19 Feb 2003 20:02:02 -0800
From: Stephen Carville [EMAIL PROTECTED]
Subject: Re: [Samba]  Need solution to Printers window access denied,
 unable to connect message.
In-reply-to: [EMAIL PROTECTED]
To: Tim Kubricht [EMAIL PROTECTED], [EMAIL PROTECTED]
Message-id: [EMAIL PROTECTED]
Organization: DPSI
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
User-Agent: KMail/1.4.3
References: [EMAIL PROTECTED]
I had the same problem after upgrading to 2.2.7.  You have to add:

use client driver = yes

Either globally or for the individual printer share.

Read the section on the above in the man page for smb.conf for an
explanation.
On Wednesday 19 February 2003 07:35 pm, Tim Kubricht wrote:
 Hi,

   I hope this is the right list to submit this request to

   I have the following problem with samba 2.2.2 that I upgraded
to
 samba 2.2.7 to try to see if the problem
   would go away. But I still have the following problem:

   When I open the Start-Settings-Printers window
   It shows the printers that I have connected to from the
samba
 print server  printer_name on samba_ip_address
   It shows opening  at 1st then changes to access denied,
unable
 to connect
   and never shows the ready message that I used to get from
a samba
 1.9.15p8 server that I updated.

   * Can someone help me to get rid of the access denied
messages
 from the Printers window?

   The following is what I have:

  My OS is Solaris 8 my PCs are either WinNT4 or Win2000
  I have set up smb.conf as you can see below
  With it I can use dos to run net view and it works as
expected
  I can open Network Neighborhood and find my samba print
server
 and it will list all the printer shares
  along with the Printers folder. If I double click the
Printers
 folder:
  I can get a list of all the printers and the number of
 documents that are currently being printed on each
  printer and If I double-click on a specific printer I
can get
 the name of the job and person that is printing
  on the queue.   This works as expected.  I did not see
this
 error in any of the Archives or the troubleshooting
  section that I found or in any of the 3 books I have.
I need
 your expertise in solving this feature.

 Thanks,
 Tim

___
 smb.conf:# Samba config file created using SWAT
  # Date: 2003/02/19 10:54:34

  # Global parameters
  [global]
  workgroup = Name_Of_My_Workgroup
  server string = Samba %v on %h
  security = SERVER
  encrypt passwords = Yes
  map to guest = Bad User-- used and not
used this
 option
  password server = #PDC-Address# #BDC-Address#
  username map = /usr/local/samba/lib/username.map
  log file = /usr/local/samba/var/log.samba
  max log size = 50
  printcap name = /etc/samba-printcap
  os level = 10
  preferred master = False
  local master = No
  domain master = False
  dns proxy = No
  wins server = #Primary-WINs-Address#
  guest account = ftp -- local acct  I also
tried lp
 account
  hosts allow = ###.###. ###.###. 127.   ###=2
subnets at my
 site
  printing = bsd

  [printers]
  comment = All Printers
  path = /var/spool/pc-spool -- priv=rwxrwxrwt
owner=lp
  read only = No
  guest ok = Yes
  printable = Yes
  browseable = No

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

--
Stephen

Re: [Samba] Weird..

2003-02-28 Thread Tim Kubricht
Igor,
I found this on the MACHINE.SID  from a file on Samba-HowTo had found a 
Troubleshooting doc that suggested
removing all the files in private.  But I wanted to confirm that before I 
suggested it.
I have removed the secrets.tdb file and started samba and it did re-create 
the secrets.tdb
file.  net view \\computer_name did show my shares as expected.

Thomas Klettke wrote that you may need to go to the PDC system and remove 
the computer name
from the server list for new systems to be added.  I agree this may also 
need to be done.
Regards,
Tim
- 

The file private/MACHINE.SID identifies the domain. When a samba server is 
first started, it is
created on the fly and must never be changed again. This file has to be the 
same on the PDC and the
BDC, so the MACHINE.SID has to be copied from the PDC to the BDC. Note that 
in the latest
Samba 2.2.x releases, the machine SID (and therefore domain SID) is stored 
in the
private/secrets.tdb database. This file cannot just be copied because Samba 
looks under the
key SECRETS/SID/DOMAIN. where DOMAIN is the machine's netbios name. Since 
this name has
to be unique for each SAMBA server, this lookup will fail.
-



At 02:50 PM 2/28/2003 -0300, Igor Debacker wrote:
i deleted that file and the error goes on..

any other idea ?

- Original Message -
From: Tim Kubricht [EMAIL PROTECTED]
To: Igor Debacker [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 8:27 PM
Subject: Re: [Samba] Weird..
 Igor,

  1st shut down samba then look in the samba/private directory
  for a file called MACHINE.SID and delete the file.

  when you start Samba back up it will recreate the file.

 Regards,
 Tim


___
 At 07:03 PM 2/27/2003 -0300, Igor Debacker wrote:
 I have a machine with 'samba + winbind' installed ... everything works
fine.
 
 its my beta-machine.. so i used norton ghost to clone it to another
 computers, and as usual it works good, so i decided to do it with 5
 machines. at the end of the procedure i changed the ip of each one and
the
 netbios name
 
 so i have 5 cloned machines with 'winbind+samba' and thats good.. but if
i
 turn all of them on, together, i can only log in at the last one i turned
 on.. at all others machines i can't log in.. it shows me this error
 
 cli_net_auth2: error nt_status_access_denied
 
 cli_nt_setup_setup_creds: auth2 challenge failed
 
 connect_to_domain_password_server: unable to setup the PDC credentials to
 machine KANT. error was: nt_status_ok
 
 domain_client_validate: domain password server not available.
 
 so.. individually the machines are working but in someway they are
 conflicting and i don't know where...
 
 Thanx in advance,
 
 Igor
 
 OBS.: KANT is my PDC machine name
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Weird..

2003-02-27 Thread Tim Kubricht
Igor,

1st shut down samba then look in the samba/private directory
for a file called MACHINE.SID and delete the file.
when you start Samba back up it will recreate the file.

Regards,
Tim
___
At 07:03 PM 2/27/2003 -0300, Igor Debacker wrote:
I have a machine with 'samba + winbind' installed ... everything works fine.

its my beta-machine.. so i used norton ghost to clone it to another 
computers, and as usual it works good, so i decided to do it with 5 
machines. at the end of the procedure i changed the ip of each one and the 
netbios name

so i have 5 cloned machines with 'winbind+samba' and thats good.. but if i 
turn all of them on, together, i can only log in at the last one i turned 
on.. at all others machines i can't log in.. it shows me this error

cli_net_auth2: error nt_status_access_denied

cli_nt_setup_setup_creds: auth2 challenge failed

connect_to_domain_password_server: unable to setup the PDC credentials to 
machine KANT. error was: nt_status_ok

domain_client_validate: domain password server not available.

so.. individually the machines are working but in someway they are 
conflicting and i don't know where...

Thanx in advance,

Igor

OBS.: KANT is my PDC machine name
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re[2]: [Samba] Need solution to Printers window access denied,unable to connect message.

2003-02-21 Thread Tim Kubricht
Clayton,

  Yes Success I have gotten rid of the access denied, unable to 
connect error messages on both my
   samba 2.2.7 and samba 2.2.2 servers.

  Thanks go to Stephen Carville for the solution.

  It took till today to confirm with my users that the problem has 
gone away.

  Clayton (after enabling SWAT on my samba 2.2.7 test server) I did 
find the use client driver option hidden
  in the SWAT Advanced page  of the Printers queue window and from 
man smb.conf  I search for /use client
  which says that if you do not upload printer drivers into samba then 
you will get the access denied, unable to
  connect message in the printer queue window even though jobs may 
successfully be printed.  And it says that
  disable spoolss = yes does the same behavior as the use client 
driver = yes option.

  Note1: It does take about a minute for the opening message to be 
replaced by the ready message But I
guess it is authenticating with the NT PDC during this 
time delay.

  Note2: The man page also says not to use this feature if you do 
upload drivers into samba.

Thanks for everyone's help
Tim

At 09:43 PM 2/20/03 -0500, Clayton Slaughter wrote:
Hello Tim,
  were you able to find the reference doc below?
use client driver = yes

I searched for driver, client, and use (all of which took
forever) in the man pages. My version 2.2.7a shows a use but
not with a client. It shows a client but only with code page.
Nothing similar to this.

I had this same problem and fixed it by using security = share
instead. I'm hoping to figure out the real culprit and return
to a user based security.

Thanks.
Clayton.

ps. I accessed the pages using man smb.conf and used the /
to perform finds in the less displayed output.

Wednesday, February 19, 2003, 11:02:02 PM, you wrote:


SC I had the same problem after upgrading to 2.2.7.  You have to add:

SC use client driver = yes

SC Either globally or for the individual printer share.

SC Read the section on the above in the man page for smb.conf for an
SC explanation.

SC On Wednesday 19 February 2003 07:35 pm, Tim Kubricht wrote:
 Hi,

   I hope this is the right list to submit this request to

   I have the following problem with samba 2.2.2 that I upgraded
SC to
 samba 2.2.7 to try to see if the problem
   would go away. But I still have the following problem:

   When I open the Start-Settings-Printers window
   It shows the printers that I have connected to from the
SC samba
 print server  printer_name on samba_ip_address
   It shows opening  at 1st then changes to access denied,
SC unable
 to connect
   and never shows the ready message that I used to get from
SC a samba
 1.9.15p8 server that I updated.

   * Can someone help me to get rid of the access denied
SC messages
 from the Printers window?

   The following is what I have:

  My OS is Solaris 8 my PCs are either WinNT4 or Win2000
  I have set up smb.conf as you can see below
  With it I can use dos to run net view and it works as
SC expected
  I can open Network Neighborhood and find my samba print
SC server
 and it will list all the printer shares
  along with the Printers folder. If I double click the
SC Printers
 folder:
  I can get a list of all the printers and the number of
 documents that are currently being printed on each
  printer and If I double-click on a specific printer I
SC can get
 the name of the job and person that is printing
  on the queue.   This works as expected.  I did not see
SC this
 error in any of the Archives or the troubleshooting
  section that I found or in any of the 3 books I have.
SC I need
 your expertise in solving this feature.

 Thanks,
 Tim

SC 
___
 smb.conf:# Samba config file created using SWAT
  # Date: 2003/02/19 10:54:34

  # Global parameters
  [global]
  workgroup = Name_Of_My_Workgroup
  server string = Samba %v on %h
  security = SERVER
  encrypt passwords = Yes
  map to guest = Bad User-- used and not
SC used this
 option
  password server = #PDC-Address# #BDC-Address#
  username map = /usr/local/samba/lib/username.map
  log file = /usr/local/samba/var/log.samba
  max log size = 50
  printcap name = /etc/samba-printcap
  os level = 10
  preferred master = False
  local master = No
  domain master = False

[Samba] Need solution to Printers window access denied,unable to connect message.

2003-02-19 Thread Tim Kubricht
Hi,

 I hope this is the right list to submit this request to

 I have the following problem with samba 2.2.2 that I upgraded to 
samba 2.2.7 to try to see if the problem
 would go away. But I still have the following problem:

 When I open the Start-Settings-Printers window
 It shows the printers that I have connected to from the samba 
print server  printer_name on samba_ip_address
 It shows opening  at 1st then changes to access denied, unable 
to connect
 and never shows the ready message that I used to get from a samba 
1.9.15p8 server that I updated.

 * Can someone help me to get rid of the access denied messages 
from the Printers window?

 The following is what I have:

My OS is Solaris 8 my PCs are either WinNT4 or Win2000
I have set up smb.conf as you can see below
With it I can use dos to run net view and it works as expected
I can open Network Neighborhood and find my samba print server 
and it will list all the printer shares
along with the Printers folder. If I double click the Printers 
folder:
I can get a list of all the printers and the number of 
documents that are currently being printed on each
printer and If I double-click on a specific printer I can get 
the name of the job and person that is printing
on the queue.   This works as expected.  I did not see this 
error in any of the Archives or the troubleshooting
section that I found or in any of the 3 books I have.   I need 
your expertise in solving this feature.

Thanks,
Tim
   ___
   smb.conf:# Samba config file created using SWAT
# Date: 2003/02/19 10:54:34

# Global parameters
[global]
workgroup = Name_Of_My_Workgroup
server string = Samba %v on %h
security = SERVER
encrypt passwords = Yes
map to guest = Bad User-- used and not used this 
option
password server = #PDC-Address# #BDC-Address#
username map = /usr/local/samba/lib/username.map
log file = /usr/local/samba/var/log.samba
max log size = 50
printcap name = /etc/samba-printcap
os level = 10
preferred master = False
local master = No
domain master = False
dns proxy = No
wins server = #Primary-WINs-Address#
guest account = ftp -- local acct  I also tried lp 
account
hosts allow = ###.###. ###.###. 127.   ###=2 subnets at my 
site
printing = bsd

[printers]
comment = All Printers
path = /var/spool/pc-spool -- priv=rwxrwxrwt owner=lp
read only = No
guest ok = Yes
printable = Yes
browseable = No

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