Welcome to the new location of Alien's Wiki, sharing a single dokuwiki install with the SlackDocs Wiki.
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | wiki:talk:slackware:cups [2012/01/30 20:01] – another ownership technique 96.231.147.33 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Discussion about printing with CUPS in Slackware ===== | ||
+ | |||
+ | |||
+ | Please leave your constructive comments on this page.\\ | ||
+ | --- Eric | ||
+ | ------------------------------------------------------- | ||
+ | |||
+ | ==== Ownership ==== | ||
+ | |||
+ | In Slackware 12 with CUPS 1.3.7 I found setting the pdf script to save the file did not work as expected. It appears the script is run as user lp, which cannot change the owner. Rather than remove the sticky bit, I used "sudo chown" to change the owner, of course that meant the following " | ||
+ | |||
+ | < | ||
+ | ## Alternatively, | ||
+ | ## but leave the file on the server and restrict access by others: | ||
+ | #if [ " | ||
+ | # $MAILBIN $2 $OUTPUTFILENAME | ||
+ | # rm -f $OUTPUTFILENAME | ||
+ | #fi | ||
+ | if [ " | ||
+ | chmod 700 $OUTPUTFILENAME | ||
+ | sudo chown $2 $OUTPUTFILENAME | ||
+ | # Save the title of the file | ||
+ | echo $3 > | ||
+ | chmod 600 $OUTPUTFILENAME.title | ||
+ | sudo chown $2: $OUTPUTFILENAME.title | ||
+ | fi | ||
+ | exit 0''</ | ||
+ | |||
+ | Is there a better way to achieve the same results? | ||
+ | |||
+ | === Another Possibility === | ||
+ | |||
+ | (This is still the case in Slackware 13.37, with CUPS 1.4.6.) | ||
+ | |||
+ | I'm using the following, instead: | ||
+ | |||
+ | < | ||
+ | chown lp:lp / | ||
+ | |||
+ | and making sure that the users I want to have access to the printed PDFs are in group lp. | ||
+ | |||
+ | This does mean that multiple users on my system could access my PDF prints, so there are still security implications. | ||
+ | |||
+ | ------------------------------------------------------- | ||
+ | ==== Permissions ==== | ||
+ | |||
+ | > Hi Erik, thanks for this guide! But I got it working only after | ||
+ | > I did a chmod 755 on / | ||
+ | > --- Jens | ||
+ | |||
+ | Yes you are right. Cups used to run as root (I wrote this article for Slackware 10) but modern cups processes run as user "'' | ||
+ | |||
+ | ------------------------------------------------------- | ||