do all win$ users have printing permission problem ?
what about running samba with a non-zero debug option trying to catch more
information ?
are samba users (signons) valid unix' ones ?
did you try "read only=no" in the printer shares ?
maybe could you try a "force user=root" in the printer shares ?
hth,
A 16:35 25/01/2001 -0800, vous avez écrit :
>I have a Linux Redhat 7 machine running Samba, and file and print
>serving about 30 win98/nt machines. There are 4 printers setup on our
>network. All is running smoothly, and I am quite pleased with the setup,
>except one small hickup. I've searched this list's archives, and read all
>the resources that I have available to no avail.
>
>There is a problem with the permissions on the print spool directories (or
>somewhere in my config I assume). When the print spool directories are set
>to the proper permissions, such as:
>
>/var/spool/lpd/hp2100tn
>mode 700, rwx for user only, with owners of the directory as lp:lp.
>
>I can print using the lpr command sitting at the machine for any user.
>
>====The problem====
>When the win users (through samba) try to print with the permissions set
>like this, they get some error in windows like, "This printer is not
>available, it will be set for offline use... blah blah blah". Bottom line
>they can't print, and they get upset. The log.smb reports, simply
>"Permission error".
>
>So, as a temporary fix I changed the permissions to:
>
>/var/spool/lpd/hp2100tn
>mode 777, rwx for user, group, world, same owner lp:lp.
>
>Like this, the windows machine can print fine, no errors or nasty messages.
>
>If I reboot the linux machine, it tells me during boot up that the
>permissions are wrong for those print spool directories and changes them
>back to 700 for me. This causes trouble for the windows users again. The
>machine is not exposed to the outside world, so I am not concerned with
>security on these directories, but I want it to function properly by itself
>in case someone needs to reboot the machine while I am not around to
>correct the permissions. And well, I just want it to be "right".
>
>Not sure what I am doing wrong here. Below are copies of my printcap, and
>smb.conf files. In smb.conf you can see I altered the lpr command to
>include the -U root, didn't work of corse ;-) Do I need to include a create
>mode for the printer maybe? Printing BSD? I didn't get why I needed this.
>Anyway I can't proceed on my own.
>
>Thanks for taking a look. Any advice, comments welcome!
>
>p.s. I am quite new to Linux and this list, so forgive my newbieness. I am
>very pleased with what I have accomplished though. Linux really impresses
>me, and every day I use it I grow to hate MS more and more.
>
>=====Printercap:
># /etc/printcap
>#
># Please don't edit this file directly unless you know what you are doing!
># Be warned that the control-panel printtool requires a very strict format!
># Look at the printcap(5) man page for more info.
>#
># This file can be edited with the printtool in the control-panel.
>
>##PRINTTOOL3## REMOTE
>hp5m:\
> :sd=/var/spool/lpd/hp5m:\
> :mx#0:\
> :sh:\
> :rm=10.100.100.200:\
> :rp=raw:\
> :lpd_bounce=true:
>##PRINTTOOL3## REMOTE
>hp2100tn:\
> :sd=/var/spool/lpd/hp2100tn:\
> :mx#0:\
> :sh:\
> :rm=10.100.100.201:\
> :rp=raw:\
> :lpd_bounce=true:
>##PRINTTOOL3## REMOTE
>hp2000c:\
> :sd=/var/spool/lpd/hp2000c:\
> :mx#0:\
> :sh:\
> :rm=10.100.100.202:\
> :rp=raw:\
> :lpd_bounce=true:
>##PRINTTOOL3## REMOTE
>hp1600c:\
> :sd=/var/spool/lpd/hp1600c:\
> :mx#0:\
> :sh:\
> :rm=10.100.100.203:\
> :rp=raw:\
> :lpd_bounce=true:
>
>
>=======smb.conf
>[global]
> # Set logging info
> log level = 2
> max log size = 30
> ssl = no
> interfaces = 10.100.100.198/24
> workgroup = ctp
> encrypt passwords = yes
> netbios name = fileshare
> server string = Samba %v on (%L)
> guest ok = no
> hide dot files = yes
> # Restrict access to the following
> hosts allow = 10.100. localhost
> # Restrict access for these users
> invalid users = @wheel, mail, deamon, adt
> # Force this server to become the browse master
> domain master = yes
> preferred master = yes
> os level = 34
> # Performance related options
> socket options = TCP_NODELAY IPTOS_LOWDELAY
> getwd cache = yes
> [public]
> comment = A groups public share
> path = /home/%g
> read only = no
> create mode = 0770
> directory mode = 0770
>
> [homes]
> comment = Personal file share
> path = /home/%u/share
> read only = no
> create mode = 0700
> directory mode = 0770
>
> [hp2100tn]
> comment = The glorious HP2100TN
> printer = hp2100tn
> printable = yes
> path = /var/spool/lpd/hp2100tn
> print command = lpr -P hp2100tn -r %s
> printing = BSD
> read only = yes
> [hp5m]
> comment = An old-e but a good-e
> printer = hp5m
> printable = yes
> path = /var/spool/lpd/hp5m
> print command = lpr -P hp5m -r %s
> printing = BSD
> read only = yes
> [hp2000c]
> comment = I drink ink all day long, still I thirst
> printer = hp2000c
> printable = yes
> path = /var/spool/lpd/hp2000c
> print command = lpr -P hp2000c -r %s
> printing = BSD
> read only = yes
> [hp1600c]
> comment = Old as the hills, but flatter
> printer = hp1600c
> printable = yes
> path = /var/spool/lpd/hp1600c
> print command = lpr -U root -P hp1600c -r %s
> printing = BSD
> read only = yes
>
>
>
>
>-Alex Tabony - [EMAIL PROTECTED]
>510/849-2911 Voice/TTY
>510/849-2968 Fax
>
>Not all those who wander are lost. -jrrt
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
- * - * - * - * - * - * -
Mes idees n'engagent que moi (vieux proverbe du Net)
Thierry ITTY
eMail: [EMAIL PROTECTED] FRANCE
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list