GNU socialhttps://social.mxchange.org/api/statusnet/conversation/119221.atomConversation2024-03-29T11:19:42+01:00http://activitystrea.ms/schema/1.0/commenttag:social.mxchange.org,2015-02-23:noticeId=119452:objectType=commentNew comment by roland@<a href="https://social.umeahackerspace.se/mmn" class="h-card mention" title="mmn">mmn</a> Done: e32241d ('attachments', 'chmod' is more general)http://activitystrea.ms/schema/1.0/post2015-02-23T20:23:56+00:002015-02-23T20:23:56+00:00http://activitystrea.ms/schema/1.0/personhttps://social.mxchange.org/user/1rolandPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgrolandRoland HäderPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgKrefeld, Germanyhomepagehttp://mxchange.orgtruetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenttag:social.umeahackerspace.se,2015-02-23:noticeId=193016:objectType=commentNew comment by mmnThere are more places with #<span class="tag"><a href="https://social.umeahackerspace.se/tag/chmod" rel="tag">chmod</a></span> in the source, all seem to be 0644. Maybe you could do a more general configurable default chmod value instead of just for thumbnails?<br /> You'll get to remove a "FIXME" then as well from the Ostatus_profile class ;)http://activitystrea.ms/schema/1.0/post2015-02-23T19:40:34+00:002015-02-23T19:40:34+00:00http://activitystrea.ms/schema/1.0/personhttps://social.umeahackerspace.se/user/2mmnFree software and free culture fanatic.63.82842 20.25972mmnmmnFree software and free culture fanatic.Umeå, Swedenhomepagehttps://blog.mmn-o.se/truetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenttag:social.mxchange.org,2015-02-23:noticeId=119384:objectType=commentNew comment by roland@<a href="https://social.umeahackerspace.se/mmn" class="h-card mention" title="mmn">mmn</a> @<a href="https://fresh.federati.net/lnxw48" class="h-card mention" title="lnxw48 (fresh)">lnxw48</a> I have pushed an improved patch that makes it configurable (default 0644) setting #<span class="tag"><a href="https://social.mxchange.org/tag/chmod" rel="tag">chmod</a></span>: <a href="https://gitorious.org/social/quix0rs-gnu-social/commit/a6b085d746a1161c45ae5bb6e091e30af05668ef" title="https://gitorious.org/social/quix0rs-gnu-social/commit/a6b085d746a1161c45ae5bb6e091e30af05668ef" class="attachment" id="attachment-28997" rel="nofollow external">https://gitorious.org/social/quix0rs-gnu-social/commit/a6b085d746a1161c45ae5bb6e091e30af05668ef</a>http://activitystrea.ms/schema/1.0/post2015-02-23T19:25:48+00:002015-02-23T19:25:48+00:00http://activitystrea.ms/schema/1.0/personhttps://social.mxchange.org/user/1rolandPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgrolandRoland HäderPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgKrefeld, Germanyhomepagehttp://mxchange.orgtruetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenthttps://fresh.federati.net/notice/197369New comment by lnxw48@<span class="vcard"><a href="https://social.mxchange.org/roland" class="url" title="roland"><span class="fn nickname mention">roland</span></a></span> Your webserver should be able to read anything it uploads, since it should automatically have user permissions. Exception: if you're using #<span class="tag"><a href="https://fresh.federati.net/tag/fastcgi" rel="tag">FastCGI</a></span> and running your #<span class="tag"><a href="https://fresh.federati.net/tag/php" rel="tag">PHP</a></span> daemon under a different user, you may need to fiddle with group memberships. CC: @<span class="vcard"><a href="https://social.umeahackerspace.se/mmn" class="url" title="mmn"><span class="fn nickname mention">mmn</span></a></span>http://activitystrea.ms/schema/1.0/post2015-02-23T19:14:04+00:002015-02-23T19:14:04+00:00http://activitystrea.ms/schema/1.0/personhttps://fresh.federati.net/user/54lnxw48lnxw48lnxw48 (Linux Walt)tag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenttag:social.umeahackerspace.se,2015-02-23:noticeId=192978:objectType=commentNew comment by mmnOn shared server there's no problem with this setup because the webserver will be able to read everything you create with your PHP scripts.http://activitystrea.ms/schema/1.0/post2015-02-23T18:57:08+00:002015-02-23T18:57:08+00:00http://activitystrea.ms/schema/1.0/personhttps://social.umeahackerspace.se/user/2mmnFree software and free culture fanatic.63.82842 20.25972mmnmmnFree software and free culture fanatic.Umeå, Swedenhomepagehttps://blog.mmn-o.se/truetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenttag:social.mxchange.org,2015-02-23:noticeId=119349:objectType=commentNew comment by roland@<a href="https://social.umeahackerspace.se/mmn" class="h-card mention" title="mmn">mmn</a> Or how about adding a chmod 0644 (configurable) to #<span class="tag"><a href="https://social.mxchange.org/tag/gnusocial" rel="tag">gnusocial</a></span>? Then people are not forced to change their server config (e.g. on a shared server with virtual servers this is not always possible without extra payment. A little chmod() call could prevent these extra payments (yes, such "hoster" exist).http://activitystrea.ms/schema/1.0/post2015-02-23T18:50:58+00:002015-02-23T18:50:58+00:00http://activitystrea.ms/schema/1.0/personhttps://social.mxchange.org/user/1rolandPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgrolandRoland HäderPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgKrefeld, Germanyhomepagehttp://mxchange.orgtruetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenttag:social.umeahackerspace.se,2015-02-23:noticeId=192965:objectType=commentNew comment by mmn@<a href="https://social.mxchange.org/roland" class="h-card mention" title="roland">roland</a> Your webserver should reasonably be allowed to read the files in a web application's directory. You should check your webserver config (as in which user it runs as, which user owns the 'file' directory etc.). It's not a #<span class="tag"><a href="https://social.umeahackerspace.se/tag/gnusocial" rel="tag">GNUsocial</a></span> bug anyway (but I think you can set the file upload default umask/permissions, in case webserver config is out of the question or too hard)http://activitystrea.ms/schema/1.0/post2015-02-23T18:44:25+00:002015-02-23T18:44:25+00:00http://activitystrea.ms/schema/1.0/personhttps://social.umeahackerspace.se/user/2mmnFree software and free culture fanatic.63.82842 20.25972mmnmmnFree software and free culture fanatic.Umeå, Swedenhomepagehttps://blog.mmn-o.se/truetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenttag:social.mxchange.org,2015-02-23:noticeId=119258:objectType=commentNew comment by roland@<a href="https://fresh.federati.net/lnxw48" class="h-card mention" title="lnxw48 (fresh)">lnxw48</a> Access rights were missing ... Okay, #<span class="tag"><a href="https://social.mxchange.org/tag/fixed" rel="tag">fixed.</a></span>http://activitystrea.ms/schema/1.0/post2015-02-23T17:52:00+00:002015-02-23T17:52:00+00:00http://activitystrea.ms/schema/1.0/personhttps://social.mxchange.org/user/1rolandPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgrolandRoland HäderPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgKrefeld, Germanyhomepagehttp://mxchange.orgtruetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenthttps://fresh.federati.net/notice/197301New comment by lnxw48@<span class="vcard"><a href="https://social.mxchange.org/roland" class="url" title="roland"><span class="fn nickname mention">roland</span></a></span> Do you see a directory called "AntiBrute" when you do "ls /var/www/virtual/mxchange.org/social/htdocs/plugins/" or "ls /var/www/virtual/mxchange.org/social/htdocs/local/" ?http://activitystrea.ms/schema/1.0/post2015-02-23T17:45:19+00:002015-02-23T17:45:19+00:00http://activitystrea.ms/schema/1.0/personhttps://fresh.federati.net/user/54lnxw48lnxw48lnxw48 (Linux Walt)tag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenttag:social.mxchange.org,2015-02-23:noticeId=119223:objectType=commentNew comment by roland@<a href="https://social.umeahackerspace.se/mmn" class="h-card mention" title="mmn">mmn</a> And I always (!) have to run this after I upload a file:<br /> <br /> vu2001@zulu289:~/social/htdocs$ chmod -c a+r file/*<br /> mode of `file/roland-20150223-backtrace-qy7r.txt' changed from 0600 (rw-------) to 0644 (rw-r--r--)<br /> vu2001@zulu289:~/social/htdocs$http://activitystrea.ms/schema/1.0/post2015-02-23T17:22:45+00:002015-02-23T17:22:45+00:00http://activitystrea.ms/schema/1.0/personhttps://social.mxchange.org/user/1rolandPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgrolandRoland HäderPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgKrefeld, Germanyhomepagehttp://mxchange.orgtruetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/commenttag:social.mxchange.org,2015-02-23:noticeId=119222:objectType=commentNew comment by roland@<a href="https://social.umeahackerspace.se/mmn" class="h-card mention" title="mmn">mmn</a> !<a href="http://oracle.skilledtests.com/group/613/id" class="h-card group" title="Grumble rumble (grrr)">grrr</a> to fast clicking on "Send" ... cc !<a href="http://status.hackerposse.com/group/976/id" class="h-card group" title="StatusNet & GNU Social bugs (snbug)">snbug</a> <a href="https://social.mxchange.org/attachment/28967" title="https://social.mxchange.org/file/roland-20150223-backtrace-qy7r.txt" class="attachment" id="attachment-28967" rel="nofollow external">https://social.mxchange.org/attachment/28967</a>http://activitystrea.ms/schema/1.0/post2015-02-23T17:21:34+00:002015-02-23T17:21:34+00:00http://activitystrea.ms/schema/1.0/personhttps://social.mxchange.org/user/1rolandPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgrolandRoland HäderPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgKrefeld, Germanyhomepagehttp://mxchange.orgtruetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3http://activitystrea.ms/schema/1.0/notetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=noteNew note by roland@<a href="https://social.umeahackerspace.se/mmn" class="h-card mention" title="mmn">mmn</a> I get this strange error.http://activitystrea.ms/schema/1.0/post2015-02-23T17:20:51+00:002015-02-23T17:20:51+00:00http://activitystrea.ms/schema/1.0/personhttps://social.mxchange.org/user/1rolandPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgrolandRoland HäderPassionate PHP/Java SE/EE developer and admin of https://social.mxchange.orgKrefeld, Germanyhomepagehttp://mxchange.orgtruetag:social.mxchange.org,2015-02-23:noticeId=119221:objectType=thread:crc32=88aab2b3