Koozali.org: home of the SME Server

SME 6 and printing

Anonymous

SME 6 and printing
« on: March 17, 2004, 10:14:39 AM »
Hi,
My printer is connected to server/gateway SME 6 and it works perfect. But if I connect my windows 2000 computer via samba (I must enter admin password), then I can print and do what I want. But if I don't connect, just after w2k restart I try to print, then I can't. Why?
Or is there in w2k computer such place where can I put SME admin's username and password and if I restart my computer, then it connecs automatically without entering passwords any more.

Thanks

bobk

SME 6 and printing
« Reply #1 on: March 17, 2004, 02:54:02 PM »
The user name and pasword on the W2K machine needs to be the same as one of the users on your SME server

Anonymous

SME 6 and printing
« Reply #2 on: March 17, 2004, 04:29:48 PM »
Quote from: "bobk"
The user name and pasword on the W2K machine needs to be the same as one of the users on your SME server

Yes, I know that, but I would like to log on my win machine as administrator not admin. Is there some kind of possibility to do so?

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
SME 6 and printing
« Reply #3 on: March 17, 2004, 05:43:05 PM »
Sure...

Make an SME account called "administrator"  :-D

...enjoy

...:roll: and DO realize that it isn't really a good practice to use your pc in "administrator" mode for word&stuff -
SOME protection from worms&virusses is OK - don't you agree  8-) :-D  8-) ???
............

Tony

SME 6 and printing
« Reply #4 on: April 11, 2004, 08:53:03 PM »
Quote from: "Reinhold"
Sure...

Make an SME account called "administrator"  :-D

...enjoy

...:roll: and DO realize that it isn't really a good practice to use your pc in "administrator" mode for word&stuff -
SOME protection from worms&virusses is OK - don't you agree  8-) :-D  8-) ???

Hello all, sorry for digging this old topic out, but I have the same problem. If I try to make new account on sme called 'administrator' then I get error. Account name must be less than 12 characters :(
So, what do you suggest?

Thanks,
Tony

Offline dmajwool

  • *****
  • 180
  • +0/-0
SME 6 and printing
« Reply #5 on: April 11, 2004, 09:53:01 PM »
Quote
Account name must be less than 12 characters :(
So, what do you suggest?


So why not make an account on the Win2K called admin?

David

Anonymous

SME 6 and printing
« Reply #6 on: April 11, 2004, 10:06:14 PM »
It sounds like what you want to do is to boot Win2k and "log on" as administrator with a blank password, then utilize SME's resources across the network without validation. Windows will let you get away with this, but SME was purposely not designed with this functionality in mind. I'm hoping that you're aware that you can create matching accounts/passwords on SME and the client, give them whatever acces you think best, and, if they're in the same workgroup log on one time when booting Win2k, and access what you need from SME with better security, and without further ado.

As far as printing goes, if you really want to do it this way, you should be able to "store" an account\password like this:

Open the Printers window
Hold down the Shift key and right-click on "Add Printer"
choose "Run As ..."
enter "admin" and the password
map the printer in the usual way

Thereafter, anytime you use that particular mapping from an application, you will be printing as "admin" as far as the server is concerned - because Win2k will  present the admin logon when requested.

If you try this pls let us know the results.

Offhand, printing this way doesn't by itself seem to be such a big deal, but you might want to consider spending some time investigating the potential security consequences of doing things in this manner.

Tony

SME 6 and printing
« Reply #7 on: April 11, 2004, 10:36:40 PM »
Thanks for helping, but I'm stucked again.

Firstly:
Quote
I'm hoping that you're aware that you can create matching accounts/passwords on SME and the client, give them whatever acces you think best, and, if they're in the same workgroup log on one time when booting Win2k,


Sorry, I'm not such old guy on SME, can you explain it? How can I grate those matching accounts?

Secondly:

Quote
Open the Printers window
Hold down the Shift key and right-click on "Add Printer"
choose "Run As ..."
enter "admin" and the password
map the printer in the usual way

There is no "Run As" command.. :(

But I can tell, whatever I do, there are not security risk because this SME box is not my gateway and server, this is just server.

Thanks,
Tony

Tony

SME 6 and printing
« Reply #8 on: April 11, 2004, 10:42:34 PM »
Quote from: "dmajwool"
Quote
Account name must be less than 12 characters :(
So, what do you suggest?


So why not make an account on the Win2K called admin?

David

Yes, this is possibility. But are there any other variant?

Woodbuger

SME 6 and printing
« Reply #9 on: April 12, 2004, 06:50:15 AM »
I map my sme primary from my Win2k machine and select "reconnect at logon". Printing works fine.

Tony

SME 6 and printing
« Reply #10 on: April 12, 2004, 07:12:30 PM »
Quote from: "Woodbuger"
I map my sme primary from my Win2k machine and select "reconnect at logon". Printing works fine.

Yes, I've tried this before. I must always enter the password for this Primary (SME admin password). But I don't want to enter any passwords.

bobk

SME 6 and printing
« Reply #11 on: April 13, 2004, 02:40:49 AM »
Try changing your /etc/smb.conf settings.

change
Code: [Select]
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
use client driver = yes

to
Code: [Select]

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = no
printable = yes
use client driver = yes


Then do # service smb restart

Tony

SME 6 and printing
« Reply #12 on: April 13, 2004, 06:35:15 AM »
Sorry, this do'nt work  :-(

Offline smeghead

  • *
  • 563
  • +0/-0
SME 6 and printing
« Reply #13 on: April 13, 2004, 08:33:50 PM »
.. yes it does!

Two things:

Firstly, once these changes have been made you must restart samba for the changes to take effect:

      service smb restart

Secondly, for these changes to be permanent the template has to be changed (copy /etc/e-smith/templates/etc/smb.conf/50printers to /etc/e-smith/templates-custom/etc/smb.conf/50printers, make changes and then regenerate the smb.conf file (/sbin/e-smith/expand-template /etc/smb.conf)

It wouldn't hurt to run

      service smb restart

again for good measure.

BTW - its worthwhile checking your samba version and upgrading to samba-2.2.8a-2cb

Another 'fix' is to create a printer admins group and then using the same technique as above but with 11printerAdmin set the printer admin to this new group - this will allow all members FULL control of the printers on the SME box.

HTH
..................

Tony

SME 6 and printing
« Reply #14 on: April 14, 2004, 01:11:46 PM »
So, I tried this variant:
Quote
Secondly, for these changes to be permanent the template has to be changed (copy /etc/e-smith/templates/etc/smb.conf/50printers to /etc/e-smith/templates-custom/etc/smb.conf/50printers, make changes and then regenerate the smb.conf file (/sbin/e-smith/expand-template /etc/smb.conf)

It wouldn't hurt to run

service smb restart

And the result was zero :-( Nothing happened :-(
My smb.conf file looks like this in my /etc/smb.conf
Code: [Select]

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = no
printable = yes
public = yes

It doesn't work.

I even updated my samba like you recommended.

Then I tried your second point. I copied this file, but then I stucked. You said that I must set the printer admin to this new group. But witch users are in this group? I log on as administrator on win2k machines, but on SME I can't grate so long user account :-(

If you have time and you would like to discuss about my problem, then you can connect me via MSN: tobre@hot.ee or via e-mail: tobre@bitboard.ee

Thanks,

Tony[/code]

Tony

SME 6 and printing
« Reply #15 on: April 15, 2004, 06:18:59 PM »
So, does anybody know what's wrong?  :-?

Anonymous

SME 6 and printing
« Reply #16 on: April 15, 2004, 08:41:21 PM »
Have you tried to create a user account (user1) or your name with a password on both the SME server and the W2K box?  The user name and password will need to be identical, also remember that the SME user name is case sesitive.  
On your Win2K box, make your new user a member of the Administrator group if you want that type of access.  
Logout and then login with your new account.  You will need to reinstall your printer in the new Windows profile.

I have been running with Windoze 2000 and recently XP with SME5.6 and 6 with no issues with printers and shared folders on the SME boxes.

Enjoy,