Link to home
Start Free TrialLog in
Avatar of PhillO
PhillOFlag for Australia

asked on

samba printing setup

i am trying to setup a print server on a fedora 3 platform using samba.

windows xp sp2 correctly recognises the printer but a test document does not get printed

The follwing ports are open on the firewall: 137:udp, 139:tcp, 445:tcp

smb.config printers section looks like this
[printers]
      comment = All Printers
      valid users = phill
      path = /var/spool/samba #has read/write/execute permissions for all users
      browseable = no
      public = no
      printable = yes

What is the problem??

Phill
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Hi,

1. Make sure you can print from the Linux box first.

2. Setup CUPS

3. Modify the /etc/smb.conf
[printers]
     comment = All Printers
     valid users = phill
     path = /var/spool/samba #has read/write/execute permissions for all users
     browseable = no
     printable = yes
printing = cups
public = yes
printer name = deskjet940c  <=== Your printer name in CUPS.

Wesly
Avatar of PhillO

ASKER

It is still not working

an information dialogue appears to show the status of the print queue but it doesn't get beyond "Collecting printer status."

I haven't left a port out on the firewall settings have I?
Could you print on Linux?

Turn off firewall if you have any.
/etc/init.d/iptables stop
Avatar of PhillO

ASKER

Yes I can print from linux. There is nothing in the samba logs regarding the printing from the XP machine. It is almost like it never gets to samba at all. I have tried to disable firewalls on both machines but that didn't work. Mind you I didn't reboot linux without the firewall

Regards,
Phill
Avatar of PhillO

ASKER

I have found an answer to my own question

basically i need to set up my windows machine as a user in linux and samba and set that user as a machine trust account in samba

Phill
> set up my windows machine as a user in linux and samba and set that user as a machine trust account in samba
So your Windows machine name needs to be in trust machine list in SAMBA?
I'm glad to hear your issue resolved. However, I'm quite confusing about your solution.
Avatar of PhillO

ASKER

The solution was found on the web somewhere. I tried to find it but alas....

However... It is similar to what needs to happen in a domain setup.

On the linux server, i need to setup a user account for my desktop machine as if it was a regular user. Similarly in samba, a user account needs to be set up . Once this is done, the is a setting in samba to let samba know that it is a machine account and not a regular user.

I had to do it this way because even though i was logged into samba as an authorised user, the printer in windows kept getting "accessed denied" errors.

Perhaps there is is a better way. I'm not sure. But this works

Phill
ASKER CERTIFIED SOLUTION
Avatar of OzzMod
OzzMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial