Hello, I am new to Linux and Samba. I am trying to print from a W98 box to a Linux printer. I am using Suse 7.2 and Samba 2.2.8a., and Linux is acting as a PDC. I created a user in Linux and put it in the users group and the lp group. The only way I got this user to print was changing the spool directory permissions (and all the files within it) from 0600 to 0770. BUT when I restarted Linux today, I got boot warnings saying that these permissions are incorrect, and they were automatically changed back to 0600. This way I cannot print. What am I doing wrong? Thank you very much for your help. Regards, LauZ
Ryan Novosielski
2003-May-21 17:36 UTC
[Samba] Fw: Spool directory permissions for printing
You have a couple of options... one being to remove the startup script or perhaps modify it to avoid that queue when you start your machine. Another would be to use a separate spool dir for Samba jobs. Yet another might be to modify lpd.conf somewhat, but I don't really know if that's possible to set in lpd.conf or if it can be done for just one queue. ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 On Wed, 21 May 2003, Sistemas wrote:> Hello, I am new to Linux and Samba. I am trying to print from a W98 box to a Linux printer. > I am using Suse 7.2 and Samba 2.2.8a., and Linux is acting as a PDC. > I created a user in Linux and put it in the users group and the lp group. The only way I got this user to print was changing the spool directory permissions (and all the files within it) from 0600 to 0770. BUT when I restarted Linux today, I got boot warnings saying that these permissions are incorrect, and they were automatically changed back to 0600. This way I cannot print. What am I doing wrong? > Thank you very much for your help. > > Regards, > LauZ > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Ryan Novosielski
2003-May-21 18:31 UTC
[Samba] Fw: Spool directory permissions for printing
You would merely create a directory someplace, either in /var/spool/lpd like the others, or someplace else, but one that is NOT referrenced in the printcap file, as if it is, the script will enforce permissions on it. All Samba needs is a place to put the files. I would then, as indicated in the HOWTO, change the permissions to 770 and then chmod g+s the directory, to make sure that the files will be able to be removed by samba (ie. they will be created by the right group, regardless of the user's group). ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 On Wed, 21 May 2003, Sistemas wrote:> Thank you Ryan for answering. I know this must be a stupid question, but how > do I create a separate spool dir for Samba jobs? I am using the one > automatically generated by Linux when I installed the printer, I looked in > the printcap file, and copied the name of the spool dir into my smb.conf > file. And, in the case I created a new one, won't I continue having the same > type of permissions error? (by the way, when I run the "checkpc" utility it > gives me the same warnings). Also, am I right in puting the user as a member > of lp group? > > Thank you again. > Regards, > LauZ > > > ----- Original Message ----- > From: "Ryan Novosielski" <novosirj@umdnj.edu> > To: "Sistemas" <sistemas@elbolson.gov.ar> > Cc: "Samba List" <samba@lists.samba.org> > Sent: Wednesday, May 21, 2003 2:36 PM > Subject: Re: [Samba] Fw: Spool directory permissions for printing > > > > You have a couple of options... one being to remove the startup script or > > perhaps modify it to avoid that queue when you start your machine. Another > > would be to use a separate spool dir for Samba jobs. > > > > Yet another might be to modify lpd.conf somewhat, but I don't really know > > if that's possible to set in lpd.conf or if it can be done for just one > > queue. > > > > ---- _ _ _ _ ___ _ _ _ > > |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin > > |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) > > \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 > > > > On Wed, 21 May 2003, Sistemas wrote: > > > > > Hello, I am new to Linux and Samba. I am trying to print from a W98 box > to a Linux printer. > > > I am using Suse 7.2 and Samba 2.2.8a., and Linux is acting as a PDC. > > > I created a user in Linux and put it in the users group and the lp > group. The only way I got this user to print was changing the spool > directory permissions (and all the files within it) from 0600 to 0770. BUT > when I restarted Linux today, I got boot warnings saying that these > permissions are incorrect, and they were automatically changed back to 0600. > This way I cannot print. What am I doing wrong? > > > Thank you very much for your help. > > > > > > Regards, > > > LauZ > > > > > > -- > > > To unsubscribe from this list go to the following URL and read the > > > instructions: http://lists.samba.org/mailman/listinfo/samba > > > >