LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 05-24-2005, 01:01 AM   #1
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Rep: Reputation: 15
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
 
Old 05-24-2005, 07:41 PM   #2
broch
Member
 
Registered: Feb 2005
Distribution: Arch current, SuSe 10.1 32-bit, FreeBSD current, OpenBSD 4.0
Posts: 453

Rep: Reputation: 30
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
 
Old 05-24-2005, 09:42 PM   #3
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
What about permissions though? My SuSE has its printer driver installed. The Windows boxes also have the printer driver installed.
 
Old 05-24-2005, 10:26 PM   #4
broch
Member
 
Registered: Feb 2005
Distribution: Arch current, SuSe 10.1 32-bit, FreeBSD current, OpenBSD 4.0
Posts: 453

Rep: Reputation: 30
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.
 
Old 05-28-2005, 04:00 PM   #5
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help printer from a samba shared printer from linux (using cups) epod69 Linux - Networking 3 12-04-2005 11:44 PM
guest write access through samba? Tangz Linux - Networking 3 07-11-2004 08:23 AM
guest access to a share in smb.conf ?? ludeKing Linux - Networking 1 10-27-2003 02:36 PM
"Access Denied" to printer and directories shared via Samba Aarstar Linux - Networking 1 03-05-2002 07:38 PM
ftp guest access c0c0deuz Linux - Software 2 01-31-2002 05:56 PM


All times are GMT -5. The time now is 11:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration