LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   Allow anonomous or guest access to shared printer? (http://www.linuxquestions.org/questions/suse-novell-60/allow-anonomous-or-guest-access-to-shared-printer-326471/)

Whiskers 05-24-2005 12:01 AM

Allow anonomous or guest access to shared printer?
 
I have my samba working and my printer is shared, however on the Windows side, it wants a username and password, and even if i give a user name and password that exists on the linux box, it fails. I get an error about not authorized, access denied, when a Windows computer tries to connect to my printer.

This is on a home network, and I dont have a firewall running on SuSE (We're behind a hardware router, so security isnt an issue here). How do i set it up so that anonomous users or guests can access my printer without needing a username or passoword?

I know this is all controlled in my samba conf file, so I'm posting it here.


# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-01-28
[global]
workgroup = HOME
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

broch 05-24-2005 06:41 PM

either configure printer drivers for Win on samba server or simply add to your smb.conf
use client driver = yes

This will allow windows client to use preinstalled driver and error will be gone.

Hope it helps

Whiskers 05-24-2005 08:42 PM

What about permissions though? My SuSE has its printer driver installed. The Windows boxes also have the printer driver installed.

broch 05-24-2005 09:26 PM

This entry allows windows to use printer with drivers windows provide.
You may add to the section
[global]
load printers= yes
and to section
[printers]
public = yes
guest ok = yes
that is all
if you need restriction you have to add them. Now everybody can print.

Whiskers 05-28-2005 03:00 PM

Still having problems. Machines are still being denied access. Now they require a username and logon.

I messed with something *oops*

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-01-28
[global]
workgroup = HOME
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = guest
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
load printers = yes
encrypt passwords = yes
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
ldap suffix = dc=example,dc=com

[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = no
inherit acls = yes

[profiles]
comment = Network Profiles Service
path = %H
read only = no
store dos attributes = yes
create mask = 0600
directory mask = 0700

[users]
comment = All users
path = /home
read only = no
inherit acls = yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = no
inherit acls = yes

[printers]
comment = All Printers
path = /var/tmp
printable = yes
create mask = 0600
browseable = yes
guest ok = yes
public = yes

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
guest ok = yes


All times are GMT -5. The time now is 09:17 AM.