MaMo Net



#1 09.09.2008, 14:34
indigo
Gast


Betreff: chmods nachträglich per FTP-Programm setzen?
Hallo,

erstmal Lob für diese tolle Forensoftware - kostenlos und lässt keine Wünsche offen.

Mein Problem rührt warscheinlich von meinem Webspaceanbieter her - Viscacha (0.8 RC4 pl1) konnte bei der Installation die chmods nicht selbst setzen, deshalb habe ich die nötigsten von Hand gesetzt. Nun stören mich aber die Einschränkungen; das Adminpanel kann teilweise nicht funktionieren. Ich möchte aber auch nicht noch eine Installation anfangen um rauszufinden welche ganzen Dateien welche Rechte haben sollen und sie dann in langer Arbeit per Hand setzen.

-> Kann mir jemand (evtl aus dem Admin-Team) eine Batch-Liste o.ä. zur Verfügung stellen, die ich dann nur noch in ein FTP-Programm kopieren muss? Momentan nutze ich FireFTP, würde aber auch dafür kurz was anderes installieren.

Oder hat irgendjemand vergleichbare Lösungen?

Irgendwelche grundsätzlichen PHP-Variabeln kann ich wahrscheinlich nicht umstellen, da ich keinen ganzen Rootserver gemietet habe.

Danke schonmal Smiling
↑  ↓

#2 10.09.2008, 23:52
indigo
Gast


Betreff: Re: chmods nachträglich per FTP-Programm setzen?
Ich hab mir schon selbst geholfen.
Folgendes den Anweisungen enprechend verändern und als PHP-Datei ausführen:
DownloadPHP-Quelltext:
  1. <?php
  2.  
  3.    /* for Viscacha 0.8 RC4 pl1 */
  4.   /*               by indigo */
  5.  
  6. /* copy into viscacha root directory */
  7. /* change  placeholders             */
  8. /* chmod this file 0777            */
  9. /* execute                        */
  10.  
  11. $conn = ftp_connect('server.com');
  12. if (!$conn) die('Unable to connect to ftp server');
  13.  
  14. if (!ftp_login($conn, 'user', 'pass')) die('Error logging into ftp server');
  15.  
  16. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/.htaccess');
  17.  
  18. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/admin/data');
  19. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/admin/backup');
  20. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/.htaccess');
  21. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/bbcode_test.php');
  22. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/config.inc.php');
  23. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/hooks.txt');
  24. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/iso3166.txt');
  25. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/iso639.txt');
  26. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/licenses/bsd.txt');
  27. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/licenses/gpl.txt');
  28. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/licenses/lgpl.txt');
  29. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/licenses/php.txt');
  30. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/notes.php');
  31. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/admin/data/rss.txt');
  32.  
  33. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/cache');
  34. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/cache/geshicode');
  35. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/cache/grabrss');
  36. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/cache/modules');
  37. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/cache/search');
  38.  
  39. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/classes/cron/jobs');
  40. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/classes/feedcreator');
  41. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/classes/fonts');
  42. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/classes/geshi');
  43. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/classes/graphic/noises');
  44.  
  45. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/data');
  46. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/.htaccess');
  47. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/bannedip.php');
  48. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/captcha.php');
  49. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/config.inc.php');
  50. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/data/cron');
  51. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/cron/cron.log');
  52. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/cron/crontab.inc.php');
  53. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/deleteduser.php');
  54. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/documents.php');
  55. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/errlog_php.inc.php');
  56. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/feedcreator.inc.php');
  57. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/g_flood.php');
  58. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/group_fields.php');
  59. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/imservers.php');
  60. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/m_flood.php');
  61. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/offline.php');
  62. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/session_del.php');
  63. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/data/sessionmails.php');
  64.  
  65. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/designs');
  66. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/designs/1');
  67. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/designs/1/print');
  68. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/designs/1/standard');
  69.  
  70. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/docs');
  71. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/docs/credits.php');
  72. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/docs/impressum.php');
  73.  
  74. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/feeds');
  75.  
  76. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/images');
  77. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/images/1');
  78. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/images/1/bbcodes');
  79. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/images/1/filetypes');
  80. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/images/smileys');
  81.  
  82. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language');
  83. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/1');
  84. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/1/admin');
  85. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/bbcodes.lng.php');
  86. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/cms.lng.php');
  87. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/cron.lng.php');
  88. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/db.lng.php');
  89. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/designs.lng.php');
  90. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/explorer.lng.php');
  91. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/filetypes.lng.php');
  92. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/forums.lng.php');
  93. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/frames.lng.php');
  94. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/global.lng.php');
  95. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/groups.lng.php');
  96. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/javascript.lng.php');
  97. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/language.lng.php');
  98. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/members.lng.php');
  99. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/misc.lng.php');
  100. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/packages.lng.php');
  101. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/posts.lng.php');
  102. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/profilefield.lng.php');
  103. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/settings.lng.php');
  104. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/slog.lng.php');
  105. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/spider.lng.php');
  106. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/admin/start.lng.php');
  107. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/bbcodes.lng.php');
  108. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/classes.lng.php');
  109. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/custom.lng.php');
  110. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/global.lng.php');
  111. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/javascript.lng.php');
  112. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/1/mails');
  113. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/admin_confirmed.php');
  114. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/digest_d.php');
  115. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/digest_s.php');
  116. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/digest_w.php');
  117. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/mass_topic_moved.php');
  118. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/new_member.php');
  119. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/new_reply.php');
  120. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/new_topic.php');
  121. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/newpm.php');
  122. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/pwremind.php');
  123. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/pwremind2.php');
  124. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/register_00.php');
  125. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/register_01.php');
  126. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/register_10.php');
  127. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/report_post.php');
  128. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/mails/topic_moved.php');
  129. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/1/modules');
  130. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/modules.lng.php');
  131. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/settings.lng.php');
  132. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/1/texts');
  133. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/texts/moved.php');
  134. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/texts/notice.php');
  135. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/timezones.lng.php');
  136. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/1/words');
  137. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/words/rules.inc.php');
  138. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/words/search.inc.php');
  139. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/1/wwo.lng.php');
  140. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/2');
  141. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/2/admin');
  142. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/bbcodes.lng.php');
  143. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/cms.lng.php');
  144. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/cron.lng.php');
  145. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/db.lng.php');
  146. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/designs.lng.php');
  147. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/explorer.lng.php');
  148. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/filetypes.lng.php');
  149. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/forums.lng.php');
  150. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/frames.lng.php');
  151. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/global.lng.php');
  152. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/groups.lng.php');
  153. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/javascript.lng.php');
  154. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/language.lng.php');
  155. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/members.lng.php');
  156. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/misc.lng.php');
  157. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/packages.lng.php');
  158. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/posts.lng.php');
  159. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/profilefield.lng.php');
  160. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/settings.lng.php');
  161. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/slog.lng.php');
  162. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/spider.lng.php');
  163. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/admin/start.lng.php');
  164. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/bbcodes.lng.php');
  165. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/classes.lng.php');
  166. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/custom.lng.php');
  167. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/global.lng.php');
  168. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/javascript.lng.php');
  169. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/2/mails');
  170. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/admin_confirmed.php');
  171. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/digest_d.php');
  172. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/digest_s.php');
  173. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/digest_w.php');
  174. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/mass_topic_moved.php');
  175. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/new_member.php');
  176. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/new_reply.php');
  177. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/new_topic.php');
  178. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/newpm.php');
  179. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/pwremind.php');
  180. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/pwremind2.php');
  181. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/register_00.php');
  182. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/register_01.php');
  183. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/register_10.php');
  184. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/report_post.php');
  185. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/mails/topic_moved.php');
  186. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/2/modules');
  187. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/modules.lng.php');
  188. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/settings.lng.php');
  189. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/2/texts');
  190. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/texts/moved.php');
  191. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/texts/notice.php');
  192. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/timezones.lng.php');
  193. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/language/2/words');
  194. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/words/rules.inc.php');
  195. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/words/search.inc.php');
  196. ftp_site($conn, 'CHMOD 0666 pathToViscachaRoot/language/2/wwo.lng.php');
  197.  
  198. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/modules');
  199. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/modules/1');
  200. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/modules/2');
  201. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/modules/3');
  202. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/modules/4');
  203. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/modules/5');
  204. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/modules/6');
  205. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/modules/7');
  206. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/modules/8');
  207.  
  208. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/temp');
  209. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/temp/errordata');
  210. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/temp/pdfimages');
  211. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/temp/searchresult');
  212. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/temp/vcards');
  213. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/templates/1');
  214. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/templates/editor');
  215.  
  216. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/uploads');
  217. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/uploads/pics');
  218. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/uploads/topics');
  219. ftp_site($conn, 'CHMOD 0777 pathToViscachaRoot/uploads/topics/thumbnails');
  220.  
  221. die('through<br><br>~ indigo');
  222. ?>
Dieser Beitrag wurde 1 mal editiert, das letzte Mal am 15.09.2008, 17:44 von MaMo. ↑  ↓

Seiten (1): 1


Alle Zeitangaben in GMT +02:00. Aktuelle Uhrzeit: 23:58.