Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


sharing lpt1: port on redhat8/samba

Posted on 2003-03-13
Medium Priority
Last Modified: 2013-12-15
I've got Redhat 8 box, with samba/smb installed and configured and working,

I would like to add a printer share, that directly shares the lpt1: port, my aim is to be able to print from a Windows 98 workstation, by simply printing to \\linuxps\printer and installing whatever driver is needed on the Win98 machine individually,

I don't know what printer system under linux I am using - that is unconfigured

What settings/modifications do I need to make to get it sharing the parallel port directly? I do not wish to install any type of driver that ties the redhat box to a certain printer - I want to 'plug and play' the printer, and install the relevant driver on win98..
Question by:binary64
  • 2

Author Comment

ID: 8134231
At the moment, win2000 test machine can see \\linuxps and it's shares, and can connect to \\linuxps\printer but the status then says "Access denied, unable to connect"

Author Comment

ID: 8138828
At the moment, win2000 test machine can see \\linuxps and it's shares, and can connect to \\linuxps\printer but the status then says "Access denied, unable to connect"

Accepted Solution

heskyttberg earned 1000 total points
ID: 8140352

You still need to setup the printer in Linux in order to be able to share it through samba, you cannot share it directly.

Use printconf and add it.

Use an editor to check and change settings in /etc/samba/smb.conf

Thees are the ones to change:
   workgroup = yourWorkgroup
# Should be same as your windows box.
   server string = Samba Server
   netbios name = prnsrv

# Make sure this is set so noone from internet can connect.
   hosts allow = 192.168.x. 127.

# Sharing the printers automatic
   printcap name = lpstat
   load printers = yes
   printing = lpr

# The shares tehmselves
   comment = All Printers
   path = /var/spool/samba
   browseable = yes

Now you need to do the following:
adduser -g users -d/home/usrname -s /bin/bash -k /etc/skel usrname
smbadduser usrname myWindowsUserName
ambpasswd myWindowsUserName

Where usrname is anything you would like it to be, or you could just add the guest account to be allowed to print, not recommended.

Set same username as you are using to login to the windows system.

Now restart samba by: /etc/init.d/smb restart

Browse the network and map the printer.

/Hans - Erik Skyttberg

Expert Comment

ID: 9079123
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month12 days, 8 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question