SAMBA Printer woes

Peter Buechler plug-discuss@lists.plug.phoenix.az.us
Sat, 4 Jan 2003 18:03:31 -0700


I am no SAMBA expert I'm afraid. But I think that the user name and password 
are not sent when you do the printing. That is why it is rejecting invalid 
user "nobody" which is the default used if a guest user ID is not defined. So 
try adding "guest ok = yes" as a line in the [printers] section, then restart 
smbd and nmbd (depends on your distribution, probably you can type 
"/etc/init.d/samba restart" or something similar). Let us know what happens.

On Saturday 04 January 2003 09:01 am, Sundar wrote:
> Hello,
>
> I am trying to access the printer on my linux server from Win2K, but I get
> the following error
>  "ACCESS DENIED, UNABLE TO CONNECT"
>
> On WIN2K.log
> [2003/01/04 08:30:05, 0] smbd/password.c:authorise_login(863)
>   authorise_login: rejected invalid user nobody
>
> I have logged in to win2k with the user name/password, which is also the
> right combination for samba. I have successfully mounted a samba share on
> win2k with that username and password.
>
> Any help is appreciated.
>
> Sundar
>
>
> smb.conf
>
> ######################################
> # This is the main Samba configuration file. You should read the
>
> # smb.conf(5) manual page in order to understand the options listed
>
> # here. Samba has a huge number of configurable options (perhaps too
>
> # many!) most of which are not shown in this example
>
> #
>
> # Any line which starts with a ; (semi-colon) or a # (hash)
>
> # is a comment and is ignored. In this example we will use a #
>
> # for commentry and a ; for parts of the config file that you
>
> # may wish to enable
>
> #
>
> # NOTE: Whenever you modify this file you should run the command "testparm"
>
> # to check that you have not many any basic syntactic errors.
>
> #
>
> #======================= Global Settings
> =====================================
>
> [global]
>
> path = /home
>
> smb passwd file = /etc/samba/smbpasswd
>
> domain master = yes
>
> printing = lprng
>
> dns proxy = yes
>
> netbios name = snoopy
>
> netbios aliases = snoopy
>
> encrypt passwords = yes
>
> name resolve order = hosts dns bcast
>
> # valid users = sundar,janet,@users
>
> security = user
>
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>
> bind interfaces only = no
>
> printcap name = /etc/printcap
>
> announce as = Samba Server
>
> max log size = 0
>
> interfaces = eth0
>
> domain logons = yes
>
> # ssl ca certfile = /usr/share/ssl/certs/ca-bundle.crt
>
> server string = Samba Server
>
> local master = yes
>
> workgroup = ESARAVANA.COM
>
> log file = /var/log/samba/%m.log
>
> netbios name = snoopy
>
> load printers = yes
>
> username map = /etc/samba/user.map
>
> lock directory = /var/lock/samba
>
> [homes]
>
> writable = yes
>
> valid users = sundar,janet,@users
>
> comment = sweet home
>
> [samba]
>
> path = /samba
>
> writable = yes
>
> comment = samba share on snoopy
>
> valid users = sundar,janet
>
> [printers]
>
> comment = All Printers
>
> path = /var/spool/lpd/lp0
>
> browseable = no
>
> printable = yes
>
> public = yes
>
> writable = no
>
> create mode = 0700
>
> [hp]
>
> path = /var/spool/lpd/lp0
>
> printer name = lp0
>
> writable = yes
>
> public = yes
>
> printable = yes
>
> print command = lpr -r -h -P %p %s
>
>
>
> ######################################
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss