Jeg sidder med phpBB og ville slå avatar til, men den siger den ikke er skrivbar, dvs. jeg har lov at ændre i den.
Jeg har en bruger til at styre siden med som hedder admin, men er lidt i tvivl om hvad jeg skal gøre for at ændre disse rettigheder.
Sådan her ser min /etc/phpbb3 mappe ud
Kode: Vælg alt
spot@SPOT-PC:/var/www/html/wp1$ cd /etc/phpbb3/
spot@SPOT-PC:/etc/phpbb3$ ls -al
totalt 28
drwxr-xr-x 3 root root 4096 jan 16 01:52 .
drwxr-xr-x 173 root root 12288 jan 16 19:50 ..
-rw-r--r-- 1 root root 1176 sep 28 2013 apache2.conf
-rw-r----- 1 root www-data 540 jan 16 01:52 database.inc.php
drwxr-xr-x 2 root root 4096 jan 16 01:51 styles
spot@SPOT-PC:/etc/phpbb3$
Kode: Vælg alt
spot@SPOT-PC:/var/www/phpbb$ ls -al
totalt 432
drwxr-xr-x 6 root root 4096 jan 16 01:52 .
drwxr-xr-x 9 root root 4096 jan 16 01:51 ..
drwxr-xr-x 4 root root 4096 jan 16 01:51 adm
lrwxrwxrwx 1 root root 23 jan 3 2014 cache -> /var/cache/phpbb3/cache
-rw-r--r-- 1 root root 4113 jan 3 2014 common.php
-rw-r--r-- 1 root root 2108 mar 6 2011 config.php
-rw-r--r-- 1 root root 4556 jan 3 2014 cron.php
drwxr-xr-x 2 root root 4096 jan 16 01:51 download
-rw-r--r-- 1 root root 1755 sep 28 2013 faq.php
-rw-r--r-- 1 root root 39174 sep 28 2013 feed.php
lrwxrwxrwx 1 root root 21 jan 3 2014 files -> /var/lib/phpbb3/files
lrwxrwxrwx 1 root root 22 jan 16 01:52 images -> /var/lib/phpbb3/images
drwxr-xr-x 14 root root 4096 jan 16 01:51 includes
-rw-r--r-- 1 root root 5311 sep 28 2013 index.php
lrwxrwxrwx 1 root root 25 jan 16 01:52 install-jC98h99Wna -> /usr/share/phpbb3/install
drwxr-xr-x 3 root root 4096 jan 16 01:51 language
-rw-r--r-- 1 root root 24276 sep 28 2013 mcp.php
-rw-r--r-- 1 root root 62341 sep 28 2013 memberlist.php
-rw-r--r-- 1 root root 61361 sep 28 2013 posting.php
-rw-r--r-- 1 root root 7555 sep 28 2013 report.php
-rw-r--r-- 1 root root 44991 sep 28 2013 search.php
lrwxrwxrwx 1 root root 21 jan 3 2014 store -> /var/lib/phpbb3/store
-rw-r--r-- 1 root root 8163 sep 28 2013 style.php
lrwxrwxrwx 1 root root 18 jan 3 2014 styles -> /etc/phpbb3/styles
-rw-r--r-- 1 root root 9722 sep 28 2013 ucp.php
-rw-r--r-- 1 root root 29444 sep 28 2013 viewforum.php
-rw-r--r-- 1 root root 13917 sep 28 2013 viewonline.php
-rw-r--r-- 1 root root 69168 sep 28 2013 viewtopic.php
spot@SPOT-PC:/var/www/phpbb$
Kode: Vælg alt
spot@SPOT-PC:/var/lib/phpbb3$ ls -al
totalt 20
drwxr-xr-x 5 root root 4096 jan 16 01:51 .
drwxr-xr-x 84 root root 4096 jan 16 01:51 ..
drwx-wx--- 2 root www-data 4096 jan 3 2014 files
drwxr-xr-x 7 root root 4096 jan 16 01:51 images
drwx-wx--- 2 root www-data 4096 jan 3 2014 store
spot@SPOT-PC:/var/lib/phpbb3$
Kode: Vælg alt
spot@SPOT-PC:/var/lib/phpbb3/images$ ls -a1
.
..
avatars
icons
index.htm
ranks
smilies
spacer.gif
upload_icons
spot@SPOT-PC:/var/lib/phpbb3/images$
Kode: Vælg alt
spot@SPOT-PC:/var/lib/phpbb3/images/avatars$ ls -al
totalt 20
drwxr-xr-x 4 root www-data 4096 jan 16 01:51 .
drwxr-xr-x 7 root root 4096 jan 16 01:51 ..
drwxr-xr-x 2 root root 4096 jan 16 01:51 gallery
-rw-r--r-- 1 root root 169 sep 28 2013 index.htm
drwx-wx--- 2 root root 4096 jan 16 01:51 upload
spot@SPOT-PC:/var/lib/phpbb3/images/avatars$
Jeg kan se der er en del der skal gøres, men hvordan? sudo chmod 775 -R /sti/til/mappe/fil hver enkelt mappe eller?
Hvilke mapper vil kræve redigering? Der er jo en hel del!
På forhånd tak.