[Samba] lpd config question for samba

naughton at domino.danielwoodhead.com naughton at domino.danielwoodhead.com
Fri Mar 22 12:03:03 GMT 2002


Is there any consensus for how to configure printer permissions on the
/var/spool/lpd/lp directories.  I am using Redhat 7.1 x86 for the samba
server.  I used to simply change the permissions to 777  on the
/var/spool/lpd/lp directory and that took care of it, but the latest redhat
distributions with samba have as part of the /etc/rc.d/init.d/smb script
something to change them back to 700.  I usually only remember that when
users start complaining.  I've tried a few things

1 - force user = lp in the printers share (works okay  - this is the one
I've gone with)
2 - adding a "chmod 777 /var/spool/lpd/lp" to /etc/rc.d/rc.local
3 - adding a "chmod 777 /var/spool/lpd/lp" to crontab  which is a hack.
4 - editing the /etc/rc.d/init.d/smb script to remove the offending lines
(which doens't survive an update)
5 - old way - wait arount until users complain, fix it manually and quickly
:)

The force group = lp didn't work anymore becuase the 700 permissions.
Someone must have seen this, please let me know what you did.  Thanks

Dan Naughton





More information about the samba mailing list