<div dir="ltr"><div><div><div><div><div>Paul - try this:<br><br></div>Open up a terminal<br></div>mkdir a play space: $mkdir ~/testdir<br></div>go there: $cd ~/testdir<br><br></div>create a file: $touch test<br><br></div><div>
Look at it: $ls -l test<br><br></div><div>-rw------- 1 david users 0 Mar 1 13:45 test<br><br></div><div>play with chmod: $chmod 110 test<br></div><div>and see what it does: $ls -l test<br><br>---x--x--- 1 david users 0 Mar 1 13:45 test<br>
<br></div><div>try other values: $ chmod 421 test<br></div><div>and see what they do: $ ls -l test<br><br>-r---w---x 1 david users 0 Mar 1 13:45 test<br><br></div><div>keep playing around till you understand how the number relate to permissions. <br>
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 1, 2014 at 1:41 PM, paul g <span dir="ltr"><<a href="mailto:pj.world@hotmail.com" target="_blank">pj.world@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Very Very solid advice if I do say so myself. This is a bit over my head but I will try to figure it out. Thanks for all your help.<br><br><div><hr>Date: Sat, 1 Mar 2014 13:20:27 -0600<div><div class="h5">
<br>From: <a href="mailto:david.wagle@gmail.com" target="_blank">david.wagle@gmail.com</a><br>To: <a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>Subject: Re: [tclug-list] A question about printing'<br>
<br><div dir="ltr">I should add -- unless you have reason to do so, don't change the group ownership. Rather, limit the permissions to that group.<br></div><div><br><br><div>On Sat, Mar 1, 2014 at 1:09 PM, David Wagle <span dir="ltr"><<a href="mailto:david.wagle@gmail.com" target="_blank">david.wagle@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>OK -- so understanding the numbers on modes:<br><br></div>
There are three sets of permissions, those for the OWNER, the GROUP and WORLD. <br><br></div>Each permission set is controlled by a bit string that is 4 bits long. <br>
<br></div>If the first bit is a 1, then that group has read permissions. <br><br></div>A bit string (base 2) of 0001 has a decimal value of 1 because 0x2^3 + 0x2^2 + 0x2^1 + 1x2^0 = 1 and corresponds to execute permission<br>
</div><br>A bit string (base 2) of 0010 has a decimal value of 2 because 0x2^3 + 0x2^2 + 1x2^1 + 0x2^0 = 2 and corresponds to write permission<br><br></div>A bit string (base 2) of 0100 has a decimal value of 4 because 0x2^3 + 1x2^2 + 0x2^1 + 0x2^0 = 4 and corresponds to read permission<br>
<br></div>The fourth bit is used for special permissions like "the sticky bit" and is really beyond the basics. <br><br></div>Now, because the values of 1, 2 and 4 are bit-independent, any combination of those values is the equivilant of 'OR'ing the bit strings. <br>
<br></div>So, if we want read and write permission we want both 4 and 2. That is we want the bit mask to be 011. Which is 0x2^3 + 1x2^2 + 1x2^1 + 0x2^0 = 6. Which is what you get if you add 4 + 2.<br><br></div><div>So a mask of, say 751 is RWX for Owner, R+X for Group and R for World. <br>
<br></div><div>As for which link to follow --- without your box in front of me to troubleshoot, I really can't say "here's what to do."<br><br></div><div>However, I'd start with setting your library to minimal permission since what you're getting is a permissions error. That would be at least as strict as 660.<br>
<br></div><div>I would also then check that your users are in the same group as your print service -- which is usually 'wheel,' but not always. <br></div></div><div><div><div>
<br><br><div>
On Sat, Mar 1, 2014 at 12:35 PM, paul g <span dir="ltr"><<a href="mailto:pj.world@hotmail.com" target="_blank">pj.world@hotmail.com</a>></span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">David thanks for the great link and advice. <br><br>I will reset world with command? 'chown root:root brfaxfilter' <br><br>I will then 'chmod go+x'<br><br>????<br><br>Can you please recommend which area of the link you sent I should possibly follow? <br>
<br>There are chmod 555 and 700 's etc making me confused. <br><br>I will restart 'cups' using the command 'sudo service cups restart'<br><br>Thanks alot for your help with this.<br><span style="font-size:17.0pt;line-height:115%;font-family:"High Tower Text","serif""></span><br>
<div><hr>Date: Sat, 1 Mar 2014 00:11:02 -0600<div><div><br>From: <a href="mailto:david.wagle@gmail.com" target="_blank">david.wagle@gmail.com</a><br>To: <a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
Subject: Re: [tclug-list] A question about printing'<br><br><div dir="ltr"><div>Looks like you're not the only one to run into this: <br><br></div><a href="http://ubuntuforums.org/archive/index.php/t-1368410.html" target="_blank">http://ubuntuforums.org/archive/index.php/t-1368410.html</a><br>
</div><div><br><br><div>On Sat, Mar 1, 2014 at 12:06 AM, David Wagle <span dir="ltr"><<a href="mailto:david.wagle@gmail.com" target="_blank">david.wagle@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Also - you probably have to restart CUPS to have it re-read the library. <br></div><div><div>
<div><br><br><div>On Sat, Mar 1, 2014 at 12:03 AM, David Wagle <span dir="ltr"><<a href="mailto:david.wagle@gmail.com" target="_blank">david.wagle@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Paul - again, there's no reason for world permissions to be anything. Anyone authorized to use the service should be in the same group as the service. <br>
</div><div><div><div><br><br><div>
On Fri, Feb 28, 2014 at 7:36 PM, paul g <span dir="ltr"><<a href="mailto:pj.world@hotmail.com" target="_blank">pj.world@hotmail.com</a>></span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Again I am sorry to repost BUT the following should be noted:<br><br>I am using a majic jack based telephone line system 'VOIP',<br><br>I have adjusted the MFC-295CN to 9600 baud rate 'fax',<br>
<br>I do of course have a high speed ethernet connection,<br><br>Your help is always appreciated.<br><br>Thank you for your time,<br><br>Paul G<br><div><br><br></div><div><div><hr>From: <a href="mailto:pj.world@hotmail.com" target="_blank">pj.world@hotmail.com</a><br>
To: <a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>Date: Fri, 28 Feb 2014 19:16:31 -0600</div><div><div><br>Subject: Re: [tclug-list] A question about printing'<br><br>
<div dir="ltr">I just preformed a 'chmod' command and permissions NOW look like this for the file:<br><br>located under: deb@deb-desktop /usr/lib/cups/filter $ <br><br>-rwxrw-rw- 1 root deb 5.2K Nov 24 2005 brfaxfilter<br>
<br>command I entered was:<br><br>sudo chmod go-x brfaxfilter<br><br>to remove execute.<br> <br>rebooted the machine same thing still shows up in Cups.<br><br><div><hr>Date: Fri, 28 Feb 2014 17:58:10 -0600<br>From: <a href="mailto:david.wagle@gmail.com" target="_blank">david.wagle@gmail.com</a><br>
To: <a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>Subject: Re: [tclug-list] A question about printing'<br><br><div dir="ltr"><div>ls -l of /usr/lib/cups/filter/brfaxfilter <br>
<br></div><div>Looks like you have a sticky bit set and have it 'rwx' for all. It really only probably needs to be 'rw-' for owner and group, and then any user who is allowed to use it should be in that group. There should be no need for a sticky bit to be set. <br>
<br></div></div><div><br><br><div>On Fri, Feb 28, 2014 at 5:51 PM, paul g <span dir="ltr"><<a href="mailto:pj.world@hotmail.com" target="_blank">pj.world@hotmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">I have successfully installed the 'CUPS' and the appropriate drivers for a model 'MFC-295CN' Brother printer. <br><br>The machine is running kernel: Linux deb-desktop 3.2.0-59-generic #90-Ubuntu SMP Tue Jan 7 22:47:22 UTC 2014 i686 i686 i386 GNU/Linux<br>
<br><br>I can print documents properly as well as scan them using xsane. Test page printout work great! also 'full color'.<br><br>My issue is with the accompanied 'BRFAX' which I have installed also uses 'Cups' is as follows: <br>
<br>When I click on 'BRFAX' inside 'Cups'<br>Reports an error:<br><br>The error is as follows: 'shown in Cups'<br><br>Stopped - File "/usr/lib/cups/filter/brfaxfilter" has insecure permissions (0100777/uid=0/gid=0).<br>
<br>deb@deb-desktop /usr/lib/cups/filter $ ls -lah<br>-rwxrwxrwx 1 root root 5.2K Nov 24 2005 brfaxfilter<br><br>dpkg -l | grep Brother<br><br>ii brmfcfaxcups 1.0.0-2 Brother MFC/FAX fax share function driver<br>
ii brmfcfaxlpd 1.0.0-2 Brother MFC-FAX LPD driver<br>ii brother-udev-rule-type1 1.0.0-1 Brother udev rule type 1<br>
ii brscan-skey 0.2.4-1 Brother Linux scanner S-KEY tool<br>ii brscan3 0.2.11-4 Brother Scanner Driver<br>
ii mfc295cncupswrapper 1.1.3-1 Brother CUPS Inkjet Printer Definitions<br>ii mfc295cnlpr 1.1.3-1 Brother lpr Inkjet Printer Definitions<br>
ii printer-driver-ptouch 1.3-3ubuntu0.1 printer driver Brother P-touch label printers<br><br>Any ideas on where to go from here?<br><br>Thank You,<br><br>Paul G<br><br><br><br><br>
</div></div>
<br>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a></div> </div>
<br>_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a></div></div></div> </div></div>
<br>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
<br>_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a></div></div></div> </div></div>
<br>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
<br>_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a></div></div></div> </div></div>
<br>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
<br></blockquote></div><br></div>