Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I'm trying to share a CUPS HP DeskJet 840C on a Slackware computer with my Windows XP Laptop. It works from Slackware, but when I try to add a printer, windows sees my linux computer, but doesn't see any printers. Here is my /etc/samba/smb.conf:
Code:
[global]
workgroup = WESTMINSTER
netbios name = AYRO
hosts allow = 192.168. 127.
guest account = pcguest
security = user
printing = cups
printcap name = lpstat
[public]
path = /share
public = yes
writeable = yes
create mask = 0777
browseable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writeable = no
printable = yes
create mode = 0700
print command = lpr -P %p -o raw %s -r
lpq command = lpstat -o %p
lprm command = cancel %p-$j
WESTMINSTER is the domain my laptop was set to (the one I use at school). No other computers in my house use that domain. In case it is important, and to prove everything is working, here is my lpstat -t:
Code:
drigz@ayro:/mnt$ lpstat -t
scheduler is running
system default destination: HPDeskJet840C
device for HPDeskJet840C: parallel:/dev/lp0
HPDeskJet840C accepting requests since Jan 01 00:00
printer HPDeskJet840C is idle. enabled since Jan 01 00:00
nope does it matter than smbd doesn't run - whenever i run /etc/rc.d/rc.samba restart, it says smbd: no process killed, and if i run /usr/sbin/smbd -D from the command line, it ends immediately (no output) and only nmbd is in ps ax. here is the relevant part of /var/log/samba/log.smbd:
Code:
[2004/09/09 19:11:27, 0] smbd/server.c:main(757)
smbd version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2004/09/09 19:11:27, 0] printing/pcap.c:pcap_printer_fn(361)
Unable to open printcap file lpstat for read!
[2004/09/09 19:11:27, 0] lib/util_sock.c:open_socket_in(691)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use
looks bad - what can i do about it?
also, if I try and open my linux computer from my network places on my laptop, i get:
Code:
\\Ayro is not accessible. You might not have permission to use this
network resource. Contact the administator of the server to find out if
you have access permissions.
The network path was not found.
Well, i've contacted myself, and i seem thoroughly confused about the whole matter
when you say ip address of server, which machine do you mean? my windows laptop is 192.168.123.104 and my linux computer is 192.168.123.102 (although these are dynamic, and so occasionally change).
there is no smbd in ps' output.
can you explain in more detail how i would go about adding these users?
after a little googling (i guess i forgot...) i've found out that it's the vmware samba daemon stopping me from running samba - its that that's sitting on port 139...
progress! uninstalled and reinstalled (but without samba) vmware, and now the client runs...
ive been looking into the users problem, which i think is it. apparently i need to create a user on my linux box with the same name as the user on my laptop. however, i cant do this, because my windows user is 'rodrigo.queiro' and linux doesnt like dots in usernames...
Also, if you have installed SWAT on the system. just type this URL (http://localhost:901/ ) into web browser and configure the complex smb.conf(5) file via a Web browser
[SWAT - Samba Web Administration Tool ]
ok, by adding the linux user samba, and then adding htat user to hte laptop, and using hte samba passwords, i now can see the printer from windows. however, it says i cant connect to it, access is denied. ideally, i wouldnt have to login and logout to do this...
ok, im basically back where i was before - the samba windows user can see my shares (printer and file) (although the computer doesn't appear in my workgroup - i have to go to \\192.168.123.102 to see them) but whenever i try to do something, it says access denied. here is my current smb.conf:
Code:
[global]
workgroup = WESTMINSTER
netbios name = AYRO
server string = Samba Printer Server
hosts allow = 192.168. 127.
guest account = pcguest
log file = /var/log/samba/log.%m
max log size = 50
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.1.1/24
printcap name = lpstat
printing = cups
[homeshare]
path = /home/drigz
public = yes
browseable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr -P %p -o raw %s -r
lpq command = lpstat -o %p
lprm command = cancel %p-%j
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.