Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-13 Thread chris

Hi Tom,

I too am in the same boat as you!

I have posted a few times about the problem which in the end has made
me setup a
dedicated print server at each site using samba 3.0.10 with the printer admin
definition to make uploading printer drivers happen!

The strange thing i have found from it all is that some of my sites have
magically worked while others just dont want to work at all... :(

if you find out a solution please let me know

--Chris Anders

Quoting Tom [EMAIL PROTECTED]:


Well, all the below tests succeeded without changing anything but I
still cannot upload drivers from WinXP. One thing I did notice
though, is that I cannot 'su' to a domain user; ie: 'su
SAVAGEPHP\\administrator' fails with the message: Unknown id:
SAVAGEPHP\administrator. Any thoughts on that?

Thanks.

Martin Zielinski wrote:

Hi Tom!

You need appropriate rights on the windows- and the unix-side.

To find out, if you're facing a problem with the unix-rights
(which is often the problem), you could try this:

1. Log in directly to the drivers share and
create or delete some files in the W32X86 directory.

On Windows:
start - execute - \\nightwolf\print$

On Linux:
smbclient nightwolf\\print$ -U 'administrator%password'

If this succeeds ... you should be able to add drivers, too.

2. Find out on the samba server which unix-user-id is used by the smbd:

  smbstatus
Samba version 3.0.20b
PID Username  Group Machine
---
14293   SAVAGEPHP\administrator  SAVAGEPHP\domänen-benutzer  martin
 (192.168.3.74)

Service  pid machine   Connected at
---
print$   14293   martinThu May 11 08:41:56 2006

3. Become this user on the samba server (as root):

  su SAVAGEPHP\\administrator
  cd /var/lib/samba/drivers/W32x86
  mkdir xxx

4. If you have a unix-rights-problem this does not succeed.
Check your directory settings (also have a look at the W32X86/2
and W32X86/3 directory.

Hope that helps

~ Martin

Tom wrote:

I know this question has been asked quite a few times from the
archive, but nothing in the previous posts seems to help my setup.
I currently have samba 3.0.21c running on Slackware with CUPS as
the printing conduit. It's setup as a PDC as can be seen from the
smb.conf file below. I cannot, no matter what I've tried, get the
server to allow me to add printer drivers to a printer through the
printer properties dialog box. I've given myself the
SePrintOperatorPrivilege rights but that didn't work. I tried
putting the 'printer admin' directive in the smb.conf file and that
didn't work; I know it's deprecated but thought I'd try anyway. Any
suggestions would be greatly appreciated as I've been on IRC
several times trying to figure this out with no success. I've also
tried logging in as 'root' and 'administrator' neither of which
work; my /etc/samba/smbusers contains a line: 'root =
Administrator'.

Configuration files are attached. If any other information is
needed I will gladly supply it.

Thank you.

Tom








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






This message was sent using Zonemail.
http://www.thezoneinternet.com.au

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


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-12 Thread Martin Zielinski

Jerry,

I'd really need your crystal ball sometimes!

Yes, Tom isn't part of a domain (security = user as default), so he 
can't su to a SAVAGEPHP\administrator or so -  and there is a use 
client driver = yes in the [printers] section of his smb.conf (which 
has been attached to the original post).


If the access rights are ok, this should be the reason and I should have
known.

Tom?

Respect,
Martin

Ryan Novosielski wrote:

Gerald (Jerry) Carter wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:

 


Well, I'm trying to add drivers to the server through the Properties
dialog box for my printer. Right click on the printer, left click
Properties, Advanced tab, New Driver button type of thing. Except that
the New Driver button is greyed out. I've checked and my user has the
SePrintOperatorPrivilege rights assigned to him but it still does not
work.




* jerry gazes into his crystal ball and then steps up to the mic

Do you have 'use client driver = yes' ?  If so, disable it
(the default setting).
  


This is a rhetorical question, because I do not know the answer -- does 
this user need to be a member of Domain Admins?


Tom, try net groupmap list and see what group is mapped to Domain 
Admins -- is the user you're connecting as a member of that group? If 
not, does making sure that they are make a difference? I'd also ask you 
to check to make sure privileges are turned on, but if they weren't, 
attempting to add PrintOperatorPrivilege would have failed with 
NT_STATUS_NO_SUCH_PRIVILEGE or equivalent.


BTW, do you have a [print$] defined, with the proper tree created 
beneath it? The directories all have to be there first. Check your logs 
for red flags, if there are any. Generally things break farther down the 
line, though, so I'm pretty sure it's Samba permissions.





--
Martin Zielinski [EMAIL PROTECTED]
Software Development
SEH Computertechnik GmbH www.seh.de
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-12 Thread Tom

I've tried it both ways, neither works.

Gerald (Jerry) Carter wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:


Well, I'm trying to add drivers to the server through the Properties
dialog box for my printer. Right click on the printer, left click
Properties, Advanced tab, New Driver button type of thing. Except that
the New Driver button is greyed out. I've checked and my user has the
SePrintOperatorPrivilege rights assigned to him but it still does not
work.


* jerry gazes into his crystal ball and then steps up to the mic

Do you have 'use client driver = yes' ?  If so, disable it
(the default setting).




cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEY6G0IR7qMdg1EfYRAuxvAJ4rc7/SPUUyoGJOMuoxtS7QeU5ECgCgo61i
xIqRXVnrdIGzlcElPUlfFdM=
=9Yg8
-END PGP SIGNATURE-



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


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-12 Thread Tom
Well, for giggles I put 'use client driver' back to 'No' in the 
smb.conf; still doesn't work. Do I need to change 'security = user' to 
'security = domain'?


I've been through all the troubleshooting steps posted in the archives. 
None have worked. Either I've missed something in those archives or mine 
is a new problem. Either way, the crystal ball doesn't seem to be working.


Thanks for the help,

Tom

Martin Zielinski wrote:

Jerry,

I'd really need your crystal ball sometimes!

Yes, Tom isn't part of a domain (security = user as default), so he 
can't su to a SAVAGEPHP\administrator or so -  and there is a use 
client driver = yes in the [printers] section of his smb.conf (which 
has been attached to the original post).


If the access rights are ok, this should be the reason and I should have
known.

Tom?

Respect,
Martin

Ryan Novosielski wrote:

Gerald (Jerry) Carter wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:

 


Well, I'm trying to add drivers to the server through the Properties
dialog box for my printer. Right click on the printer, left click
Properties, Advanced tab, New Driver button type of thing. Except that
the New Driver button is greyed out. I've checked and my user has the
SePrintOperatorPrivilege rights assigned to him but it still does not
work.




* jerry gazes into his crystal ball and then steps up to the mic

Do you have 'use client driver = yes' ?  If so, disable it
(the default setting).
  


This is a rhetorical question, because I do not know the answer -- 
does this user need to be a member of Domain Admins?


Tom, try net groupmap list and see what group is mapped to Domain 
Admins -- is the user you're connecting as a member of that group? If 
not, does making sure that they are make a difference? I'd also ask 
you to check to make sure privileges are turned on, but if they 
weren't, attempting to add PrintOperatorPrivilege would have failed 
with NT_STATUS_NO_SUCH_PRIVILEGE or equivalent.


BTW, do you have a [print$] defined, with the proper tree created 
beneath it? The directories all have to be there first. Check your 
logs for red flags, if there are any. Generally things break farther 
down the line, though, so I'm pretty sure it's Samba permissions.







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


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-12 Thread Martin Zielinski

Ok Tom,

last try! Hope this is it!

From the smb.conf:

show add printer wizard = No

Please set it to yes.

I could reproduce your grayed-out condition and it went away when this 
parameter was set to yes.


~ Martin


Tom wrote:
Well, for giggles I put 'use client driver' back to 'No' in the 
smb.conf; still doesn't work. Do I need to change 'security = user' to 
'security = domain'?


I've been through all the troubleshooting steps posted in the archives. 
None have worked. Either I've missed something in those archives or mine 
is a new problem. Either way, the crystal ball doesn't seem to be working.


Thanks for the help,

Tom

Martin Zielinski wrote:


Jerry,

I'd really need your crystal ball sometimes!

Yes, Tom isn't part of a domain (security = user as default), so he 
can't su to a SAVAGEPHP\administrator or so -  and there is a use 
client driver = yes in the [printers] section of his smb.conf (which 
has been attached to the original post).


If the access rights are ok, this should be the reason and I should have
known.

Tom?

Respect,
Martin

Ryan Novosielski wrote:


Gerald (Jerry) Carter wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:

 


Well, I'm trying to add drivers to the server through the Properties
dialog box for my printer. Right click on the printer, left click
Properties, Advanced tab, New Driver button type of thing. Except that
the New Driver button is greyed out. I've checked and my user has the
SePrintOperatorPrivilege rights assigned to him but it still does not
work.





* jerry gazes into his crystal ball and then steps up to the mic

Do you have 'use client driver = yes' ?  If so, disable it
(the default setting).
  



This is a rhetorical question, because I do not know the answer -- 
does this user need to be a member of Domain Admins?


Tom, try net groupmap list and see what group is mapped to Domain 
Admins -- is the user you're connecting as a member of that group? 
If not, does making sure that they are make a difference? I'd also 
ask you to check to make sure privileges are turned on, but if they 
weren't, attempting to add PrintOperatorPrivilege would have failed 
with NT_STATUS_NO_SUCH_PRIVILEGE or equivalent.


BTW, do you have a [print$] defined, with the proper tree created 
beneath it? The directories all have to be there first. Check your 
logs for red flags, if there are any. Generally things break farther 
down the line, though, so I'm pretty sure it's Samba permissions.










--
Martin Zielinski [EMAIL PROTECTED]
Software Development
SEH Computertechnik GmbH www.seh.de
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-12 Thread Tom

Holy crap! It's alive!

There were I believe 2 articles I read that said to set that to No; and 
since I didn't find any that said it should be Yes, I had forgotten 
about it.


Many many thanks Martin!

Tom

Martin Zielinski wrote:

Ok Tom,

last try! Hope this is it!

 From the smb.conf:

show add printer wizard = No

Please set it to yes.

I could reproduce your grayed-out condition and it went away when this 
parameter was set to yes.


~ Martin


Tom wrote:
Well, for giggles I put 'use client driver' back to 'No' in the 
smb.conf; still doesn't work. Do I need to change 'security = user' to 
'security = domain'?


I've been through all the troubleshooting steps posted in the 
archives. None have worked. Either I've missed something in those 
archives or mine is a new problem. Either way, the crystal ball 
doesn't seem to be working.


Thanks for the help,

Tom

Martin Zielinski wrote:


Jerry,

I'd really need your crystal ball sometimes!

Yes, Tom isn't part of a domain (security = user as default), so he 
can't su to a SAVAGEPHP\administrator or so -  and there is a use 
client driver = yes in the [printers] section of his smb.conf (which 
has been attached to the original post).


If the access rights are ok, this should be the reason and I should have
known.

Tom?

Respect,
Martin

Ryan Novosielski wrote:


Gerald (Jerry) Carter wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:

 


Well, I'm trying to add drivers to the server through the Properties
dialog box for my printer. Right click on the printer, left click
Properties, Advanced tab, New Driver button type of thing. Except 
that

the New Driver button is greyed out. I've checked and my user has the
SePrintOperatorPrivilege rights assigned to him but it still does not
work.





* jerry gazes into his crystal ball and then steps up to the mic

Do you have 'use client driver = yes' ?  If so, disable it
(the default setting).
  



This is a rhetorical question, because I do not know the answer -- 
does this user need to be a member of Domain Admins?


Tom, try net groupmap list and see what group is mapped to Domain 
Admins -- is the user you're connecting as a member of that group? 
If not, does making sure that they are make a difference? I'd also 
ask you to check to make sure privileges are turned on, but if they 
weren't, attempting to add PrintOperatorPrivilege would have failed 
with NT_STATUS_NO_SUCH_PRIVILEGE or equivalent.


BTW, do you have a [print$] defined, with the proper tree created 
beneath it? The directories all have to be there first. Check your 
logs for red flags, if there are any. Generally things break farther 
down the line, though, so I'm pretty sure it's Samba permissions.












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


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-11 Thread Martin Zielinski

Hi Tom!

You need appropriate rights on the windows- and the unix-side.

To find out, if you're facing a problem with the unix-rights
(which is often the problem), you could try this:

1. Log in directly to the drivers share and
create or delete some files in the W32X86 directory.

On Windows:
start - execute - \\nightwolf\print$

On Linux:
smbclient nightwolf\\print$ -U 'administrator%password'

If this succeeds ... you should be able to add drivers, too.

2. Find out on the samba server which unix-user-id is used by the smbd:

 smbstatus
Samba version 3.0.20b
PID Username  Group Machine
---
14293   SAVAGEPHP\administrator  SAVAGEPHP\domänen-benutzer  martin 
  (192.168.3.74)


Service  pid machine   Connected at
---
print$   14293   martinThu May 11 08:41:56 2006

3. Become this user on the samba server (as root):

 su SAVAGEPHP\\administrator
 cd /var/lib/samba/drivers/W32x86
 mkdir xxx

4. If you have a unix-rights-problem this does not succeed.
Check your directory settings (also have a look at the W32X86/2 and 
W32X86/3 directory.


Hope that helps

~ Martin

Tom wrote:
I know this question has been asked quite a few times from the archive, 
but nothing in the previous posts seems to help my setup. I currently 
have samba 3.0.21c running on Slackware with CUPS as the printing 
conduit. It's setup as a PDC as can be seen from the smb.conf file 
below. I cannot, no matter what I've tried, get the server to allow me 
to add printer drivers to a printer through the printer properties 
dialog box. I've given myself the SePrintOperatorPrivilege rights but 
that didn't work. I tried putting the 'printer admin' directive in the 
smb.conf file and that didn't work; I know it's deprecated but thought 
I'd try anyway. Any suggestions would be greatly appreciated as I've 
been on IRC several times trying to figure this out with no success. 
I've also tried logging in as 'root' and 'administrator' neither of 
which work; my /etc/samba/smbusers contains a line: 'root = Administrator'.


Configuration files are attached. If any other information is needed I 
will gladly supply it.


Thank you.

Tom





--
Martin Zielinski [EMAIL PROTECTED]
Software Development
SEH Computertechnik GmbH www.seh.de
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-11 Thread Tom
Well, all the below tests succeeded without changing anything but I 
still cannot upload drivers from WinXP. One thing I did notice though, 
is that I cannot 'su' to a domain user; ie: 'su 
SAVAGEPHP\\administrator' fails with the message: Unknown id: 
SAVAGEPHP\administrator. Any thoughts on that?


Thanks.

Martin Zielinski wrote:

Hi Tom!

You need appropriate rights on the windows- and the unix-side.

To find out, if you're facing a problem with the unix-rights
(which is often the problem), you could try this:

1. Log in directly to the drivers share and
create or delete some files in the W32X86 directory.

On Windows:
start - execute - \\nightwolf\print$

On Linux:
smbclient nightwolf\\print$ -U 'administrator%password'

If this succeeds ... you should be able to add drivers, too.

2. Find out on the samba server which unix-user-id is used by the smbd:

  smbstatus
Samba version 3.0.20b
PID Username  Group Machine
---
14293   SAVAGEPHP\administrator  SAVAGEPHP\domänen-benutzer  martin   
(192.168.3.74)


Service  pid machine   Connected at
---
print$   14293   martinThu May 11 08:41:56 2006

3. Become this user on the samba server (as root):

  su SAVAGEPHP\\administrator
  cd /var/lib/samba/drivers/W32x86
  mkdir xxx

4. If you have a unix-rights-problem this does not succeed.
Check your directory settings (also have a look at the W32X86/2 and 
W32X86/3 directory.


Hope that helps

~ Martin

Tom wrote:
I know this question has been asked quite a few times from the 
archive, but nothing in the previous posts seems to help my setup. I 
currently have samba 3.0.21c running on Slackware with CUPS as the 
printing conduit. It's setup as a PDC as can be seen from the smb.conf 
file below. I cannot, no matter what I've tried, get the server to 
allow me to add printer drivers to a printer through the printer 
properties dialog box. I've given myself the SePrintOperatorPrivilege 
rights but that didn't work. I tried putting the 'printer admin' 
directive in the smb.conf file and that didn't work; I know it's 
deprecated but thought I'd try anyway. Any suggestions would be 
greatly appreciated as I've been on IRC several times trying to figure 
this out with no success. I've also tried logging in as 'root' and 
'administrator' neither of which work; my /etc/samba/smbusers contains 
a line: 'root = Administrator'.


Configuration files are attached. If any other information is needed I 
will gladly supply it.


Thank you.

Tom








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


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-11 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:
 Well, all the below tests succeeded without changing anything but I
 still cannot upload drivers from WinXP. One thing I did notice though,
 is that I cannot 'su' to a domain user; ie: 'su
 SAVAGEPHP\\administrator' fails with the message: Unknown id:
 SAVAGEPHP\administrator. Any thoughts on that?

That's probably not supposed to work, unless you're using winbindd or
something like that. I personally am not. The person you'd have to su to
 would be the account that the account maps to.

That said, I can't see where you've actually said what the failure mode
is, what errors you see, how you know it doesn't work... etc. It's going
to be impossible for anyone to help if you don't let us know what's
actually taking place.
- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - User Support Spec. III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEY2+Ymb+gadEcsb4RAiWKAJ4gQznMdy4uFZ53DsaCWyJNdENF+ACfanFW
BNVmJAri55G2Wa7RkgztX7s=
=VQm/
-END PGP SIGNATURE-

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


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-11 Thread Tom
Well, I'm trying to add drivers to the server through the Properties 
dialog box for my printer. Right click on the printer, left click 
Properties, Advanced tab, New Driver button type of thing. Except that 
the New Driver button is greyed out. I've checked and my user has the 
SePrintOperatorPrivilege rights assigned to him but it still does not 
work. I can write files and create directories in the 
\\nightwolf\print$\W32X86 folder with both my user and the administrator 
user. I can't make sense of the logs really, there's too much garbage in 
them to make heads or tails of anything myself. I'd be happy to send 
along a copy of the log files if someone could take a look; just let me 
know what log level and which log files to send.


I appreciate your help.

Tom

Ryan Novosielski wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:

Well, all the below tests succeeded without changing anything but I
still cannot upload drivers from WinXP. One thing I did notice though,
is that I cannot 'su' to a domain user; ie: 'su
SAVAGEPHP\\administrator' fails with the message: Unknown id:
SAVAGEPHP\administrator. Any thoughts on that?


That's probably not supposed to work, unless you're using winbindd or
something like that. I personally am not. The person you'd have to su to
 would be the account that the account maps to.

That said, I can't see where you've actually said what the failure mode
is, what errors you see, how you know it doesn't work... etc. It's going
to be impossible for anyone to help if you don't let us know what's
actually taking place.
- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - User Support Spec. III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEY2+Ymb+gadEcsb4RAiWKAJ4gQznMdy4uFZ53DsaCWyJNdENF+ACfanFW
BNVmJAri55G2Wa7RkgztX7s=
=VQm/
-END PGP SIGNATURE-




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


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-11 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:

 Well, I'm trying to add drivers to the server through the Properties
 dialog box for my printer. Right click on the printer, left click
 Properties, Advanced tab, New Driver button type of thing. Except that
 the New Driver button is greyed out. I've checked and my user has the
 SePrintOperatorPrivilege rights assigned to him but it still does not
 work.

* jerry gazes into his crystal ball and then steps up to the mic

Do you have 'use client driver = yes' ?  If so, disable it
(the default setting).




cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEY6G0IR7qMdg1EfYRAuxvAJ4rc7/SPUUyoGJOMuoxtS7QeU5ECgCgo61i
xIqRXVnrdIGzlcElPUlfFdM=
=9Yg8
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-11 Thread Ryan Novosielski

Gerald (Jerry) Carter wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:

  

Well, I'm trying to add drivers to the server through the Properties
dialog box for my printer. Right click on the printer, left click
Properties, Advanced tab, New Driver button type of thing. Except that
the New Driver button is greyed out. I've checked and my user has the
SePrintOperatorPrivilege rights assigned to him but it still does not
work.



* jerry gazes into his crystal ball and then steps up to the mic

Do you have 'use client driver = yes' ?  If so, disable it
(the default setting).
  
This is a rhetorical question, because I do not know the answer -- does 
this user need to be a member of Domain Admins?


Tom, try net groupmap list and see what group is mapped to Domain 
Admins -- is the user you're connecting as a member of that group? If 
not, does making sure that they are make a difference? I'd also ask you 
to check to make sure privileges are turned on, but if they weren't, 
attempting to add PrintOperatorPrivilege would have failed with 
NT_STATUS_NO_SUCH_PRIVILEGE or equivalent.


BTW, do you have a [print$] defined, with the proper tree created 
beneath it? The directories all have to be there first. Check your logs 
for red flags, if there are any. Generally things break farther down the 
line, though, so I'm pretty sure it's Samba permissions.


--
 _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | | Ryan Novosielski - User Support Spec. III
|$| |__| |  | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.| IST/AST - NJMS Medical Science Bldg - C630 

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

Re: [Samba] Problem with adding printer drivers in Windows XP

2006-05-10 Thread Kirk B. Dice
I had a similar situation.  I ended up using the smbclient to pull the
drivers over from NT, then used the rpclient to add and set the drivers.
Instructions on this are in the samba doc link below.  Also try adding the
domain name to your 'root=administrator' user map.

http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting
.html

Kirk

- Original Message -
From: Tom [EMAIL PROTECTED]
To: samba@lists.samba.org
Sent: Wednesday, May 10, 2006 11:20 AM
Subject: [Samba] Problem with adding printer drivers in Windows XP


 I know this question has been asked quite a few times from the archive,
 but nothing in the previous posts seems to help my setup. I currently
 have samba 3.0.21c running on Slackware with CUPS as the printing
 conduit. It's setup as a PDC as can be seen from the smb.conf file
 below. I cannot, no matter what I've tried, get the server to allow me
 to add printer drivers to a printer through the printer properties
 dialog box. I've given myself the SePrintOperatorPrivilege rights but
 that didn't work. I tried putting the 'printer admin' directive in the
 smb.conf file and that didn't work; I know it's deprecated but thought
 I'd try anyway. Any suggestions would be greatly appreciated as I've
 been on IRC several times trying to figure this out with no success.
 I've also tried logging in as 'root' and 'administrator' neither of
 which work; my /etc/samba/smbusers contains a line: 'root =
Administrator'.

 Configuration files are attached. If any other information is needed I
 will gladly supply it.

 Thank you.

 Tom








 # Global parameters
 [global]
 workgroup = SAVAGEPHP
 netbios name = nightwolf
 passdb backend = tdbsam
 passdb expand explicit = no
 enable privileges = Yes
 pam password change = Yes
 passwd program = /usr/bin/passwd %u
 passwd chat = *New*Password* %n\n *Re-enter*new*password*%n\n
*Password*changed*
 username map = /etc/samba/smbusers
 log level = 5
 syslog = 0
 log file = /var/log/samba/%m
 max log size = 0
 smb ports = 139 445
 name resolve order = wins bcast hosts
 printcap name = CUPS
 show add printer wizard = No
 add user script = /usr/sbin/useradd -m '%u'
 delete user script = /usr/sbin/userdel -r '%u'
 add group script = /usr/sbin/groupadd '%g'
 delete group script = /usr/sbin/groupdel '%g'
 add user to group script = /usr/bin/gpasswd -a '%u' '%g'
 delete user from group script = /usr/bin/gpasswd -d '%u' '%g'
 add machine script = /usr/sbin/useradd -s /bin/false -d /tmp '%u'
 shutdown script = /var/lib/samba/scripts/shutdown.sh
 abort shutdown script = /sbin/shutdown -c
 logon script = scripts\logon.bat
 logon path = \\%L\profiles\%U
 logon drive = H:
 logon home = \\%L\%U
 domain logons = Yes
 preferred master = Yes
 domain master = Yes
 wins support = Yes
 utmp = Yes
 map acl inherit = Yes
 veto files = /*.eml/*.nws/*.{*}/
 veto oplock files = /*.doc/*.xls/*.mdb/

 [Printers]
 comment = SMB Print Spool
 path = /var/spool/samba
 guest ok = Yes
 printable = Yes
 use client driver = Yes
 default devmode = Yes
 browseable = No

 [print$]
 comment = Printer Drivers
 path = /var/lib/samba/drivers
 browseable = yes
 guest ok = no
 read only = yes
 write list = root, tom

 [Apps]
 comment = Application Files
 path = /apps
 admin users = tom
 read only = No

 [Homes]
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No

 [netlogon]
 comment = Network Logon Service
 path = /var/lib/samba/netlogon
 guest ok = Yes
 locking = No

 [profiles]
 comment = Profile Share
 path = /var/lib/samba/profiles
 read only = No
 profile acls = Yes

 [Webroot]
 comment = Webroot
 path = /var/www
 read only = no
 admin users = tom

 [Accounts]
 comment = Accounting Files
 path = /data/accounts
 read only = No

 [Engineer]
 comment = Engineering Files
 path = /data/engineer
 read only = No







  # User mapping file 
 # File Format
 # ---
 # Unix_ID = Windows_ID
 #
 # Examples:
 # root = Administrator
 # janes = Jane Smith
 # jimbo = Jim Bones
 #
 # Note: If the name contains a space it must be double quoted.
 # In the example above the name 'jimbo' will be mapped to Windows
 # user names 'Jim' and 'Bones' because the space was not quoted.
 ###

 root = Administrator

 
 # End of File
 







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

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