Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well this seems to be a fun topic to talk about and the sad thing is i haven't found a really good document that just looks at samba and printer and all related issues.
Anyway enough with the rant here is the "issue"
I have network printers setup via CUPS and HPLIP on a debian machine, i have SWAT and the CUPS interface installed. I added the printers to samba successfully by way of the cupsaddsmb -a command and the linux machine can print to the printers fine.
the issue is when i try to connect to the printer from a windows machine i can connect it asks for drivers, i install the drivers, it finishs the connection and then the printer comes up as "access denied"
help?
here is my relevent parts of the smb.conf:
[global]
security = user
guest account = smbprint
# invaild users = root
printing = cups
printcap name = cups
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no
[printers]
comment = All Printers
browseable = yes
path = /etc/cups/printers.conf
printable = yes
public = yes
guest ok = yes
user = smbprint
# guest account = smbprint
path = /homes/smbprint
writable = yes
create mode = 0777
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
I thought I already sent you a reply on this, but I guess not...
Here it is again...
Make sure you have extracted the driver files, created a "drivers" directory in the CUPS data directory (usually /usr/share/cups) and copy the files exactly as named below:
[Windows 2000 and higher]
ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll
At minimum, you need to have smb.conf configured like this:
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
printer admin = root
[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root
Note: You may need to create the directory /etc/samba/drivers. If so:
mkdir /etc/samba/drivers
This configuration assumes a FHS-compliant installation of SAMBA; adjust the [printers] and [print$] share paths accordingly on your system as needed. That is, the directory for your printer drivers can be anywhere on the system; just make sure it is writable by the users specified by the write list directive plus readable and executable by all users. Also, make sure that you have SAMBA passwords defined for each user in the write list using SAMBA's smbpasswd(1) command. Otherwise you will not be able to authenticate.
To add a Samba password to the above configuration:
smbpasswd -a root
You will be prompted to enter your password twice.
Notice in the above examples that the user root was used which was defined in the write list of the smb.conf file
Finally, run the cupsaddsmb command to export the printer drivers for one or more queues:
cupsaddsmb -U root printer1 ... printerN ENTER
Running cupsaddsmb with the -a option will export all printers:
Hi,
Iam using Redhat linux 9.0. i have configured samba bdc.it works fine. i have tested the configuration. they are ok. i can see shares from windows machine.
but i try to see shares through nautilis it gives me following error
"
could not display "smb:///", because no host "(null)" could be found, check that spelling is correct and that your proxy settings are correct."
i tried what i know.
if anybody help me in sorting this out, i'll be very thankful.
I'd contact the Gnome people directly on this one. I looked through some of the other newsgroup and it is unanswered everywhere. Gnome has done something to how Gnome interacts with CUPS/Samba.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.