RE: [SLE] How to share a printer with linux
Hi,
From: Andre Truter [mailto:andre.truter@intekom.co.za] I have been trying to get my printer sharing to work for a while now, and I stumbled onto this thread.
SWAT makes it easier, but I still cannot get my sharing to work.
I can see the printers from Windows boxes, I can add the printer, but it's status is 'Access denied, Unable to connect'
This sounds like permissions are not set correctly. I assume you're connecting from the host with the ip 192.168.100.x? Try to add a linux-user which is called exactly like your windows user (you can use 'useradd -g users -c "Samba user" -s /bin/false -d /dev/null USERNAME' to add a user with no local privileges except authentication for services like samba).
This is the section in smb.conf for the printer:
[epson] path = /var/tmp read only = No create mask = 0600 guest ok = Yes hosts allow = 192.168.100. 127.0.0.1 printable = Yes printer name = epson oplocks = No
What am I missing here? How can I give access to Windows machines to the printer?
This seems ok to me - no obvious errors ... regards, Stefan
On Thu, 2003-04-17 at 09:55, Peer Stefan wrote:
I can see the printers from Windows boxes, I can add the printer, but it's status is 'Access denied, Unable to connect'
This sounds like permissions are not set correctly. I assume you're connecting from the host with the ip 192.168.100.x? Try to add a linux-user which is called exactly like your windows user (you can use 'useradd -g users -c "Samba user" -s /bin/false -d /dev/null USERNAME' to add a user with no local privileges except authentication for services like samba).
Ah! Got it! I am using the /etc/samba/smbusers file to map windows and linux users and the 'nobody' user was commented out. I just uncommented the line and now it works! --<snip>-- nobody = guest pcguest smbguest --<snip>-- Thanks! -- Andre Truter Software Engineer Registered Linux user #185282 ICQ #40935899 AIM: trusoftzaf http://www.trusoft.za.net <-------------------------------------------------> < The box said: Requires Windows 95 or better... > < So I installed Linux > <-------------------------------------------------> Disclaimer and Confidentiality Warning This message is intended for the addressee only. If you are not the intended recipient of this message, you are notified that any distribution, use of or copying of this communication is strictly prohibited. If you have received the communication in error, please notify the sender immediately. The views and opinions expressed in this message are those of the individual sender of this message and do not necessarily represent the views and opinions of ATIO. Consequently, ATIO does not accept responsibility for such views and opinions and this message should not be read as representing the views and opinions of ATIO without subsequent written confirmation. Each page attached hereto must also be read in conjunction with this disclaimer.
Hi, well I activated swat in the inetd services, I also active in the runlevel services so that samba will start always. Then I browse localhost:901 and logon as root and I entered the printers tab, I configure it. However, I have always in Windows a messages that says unable to connect with the printer. And when I for example in the allow host enter the ip address of the client computer and I try to connect the access is always denied I cannot even see the printers. What I am missing. The smb.conf of my computer is as follows: [lp] comment = HEWLETT-PACKARD DESKJET 640C path = /var/tmp read only = No create mask = 0600 guest ok = Yes hosts allow = 139.78.78.170 139.78.79.140 127.0.0.1 printable = Yes printer name = lp oplocks = No [color] comment = HEWLETT-PACKARD DESKJET 640C path = /var/tmp read only = No create mask = 0600 guest ok = Yes hosts allow = 139.78.78.170 139.78.79.140 127.0.0.1 printable = Yes printer name = color oplocks = No [high] comment = HEWLETT-PACKARD DESKJET 640C path = /var/tmp read only = No create mask = 0600 guest ok = Yes printable = Yes printer name = color oplocks = No and the smbusers is: # This file allows you to map usernames from the clients to the server. # Unix_name = SMB_name1 SMB_name2 ... # # Cf. section 'username map' in the manual page of smb.conf for more # information. ;root = administrator admin nobody = guest pcguest smbguest Thanks, I hope someone could tell me what is wrong Jose Andre Truter wrote:
On Thu, 2003-04-17 at 09:55, Peer Stefan wrote:
I can see the printers from Windows boxes, I can add the printer, but it's status is 'Access denied, Unable to connect'
This sounds like permissions are not set correctly. I assume you're connecting from the host with the ip 192.168.100.x? Try to add a linux-user which is called exactly like your windows user (you can use 'useradd -g users -c "Samba user" -s /bin/false -d /dev/null USERNAME' to add a user with no local privileges except authentication for services like samba).
Ah! Got it! I am using the /etc/samba/smbusers file to map windows and linux users and the 'nobody' user was commented out. I just uncommented the line and now it works!
--<snip>-- nobody = guest pcguest smbguest --<snip>--
Thanks!
By the way the network si composed of Windows XP computers does that has something to do? Also it seems to be connected, and I says that the host computers seems to have installed incorrect drivers or the drivers installed are not uptodate so if I want to install the drivers correctly in the client computer, I do so the printers appears I try to print and nothing happens. Jose
participants (3)
-
Andre Truter
-
Jose Sanchez
-
Peer Stefan