Author Topic: Setting Folder permissions  (Read 4414 times)

TommyW

  • Newbie
  • *
  • Posts: 2
Setting Folder permissions
« on: April 02, 2007, 02:50:04 AM »
Hi all

I'm having difficulty with setting folder permissions. 

I recently installed wordpress on my site to run a blog.  I can upload posts not a problem but no embedded images or files. 

I was told that I needed to set the permissions of the wp-content/uploads folder to 777 so the server can write to that folder.

Now, I select the folder in YummyFTP and choose info and set the permissions at 777.    But it doesn't stick.  I can see the update going on in the feedback window at the bottom but if I choose info again, it's set at 666.  And no I can't upload images using the WP editor or MacJournal.

Any thoughts?


JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Setting Folder permissions
« Reply #1 on: April 02, 2007, 05:02:04 AM »
Hi Tommy,

I just tested this myself on my own server, and permissions settings appear to be working as expected, so I'm surprised you're having difficulty.

When you set the permission, take a look at the FTP Transcript to see what's actually going on (select View -> Show Transcript). You'll probably need to scroll the text up to see the SITE CHMOD operation. Do you see any sort of error message? You could paste a relevant portion of the text (or the whole thing if you want) for me to look at.

TommyW

  • Newbie
  • *
  • Posts: 2
Re: Setting Folder permissions
« Reply #2 on: April 03, 2007, 01:57:54 PM »
Connection : 0
220 Gene6 FTP Server v3.9.0 (Build 2) ready...
USER tinyplanet.eu
331 Password required for tinyplanet.eu.
PASS ******
230 User tinyplanet.eu logged in.
SYST
215 UNIX Type: L8
PWD
257 "/" is current directory.
TYPE A
200 Type set to A.
PORT 192,168,1,2,213,169
200 Port command successful.
LIST
150 Opening data connection for directory list.
drw-rw-rw-   1 user     group           0 Mar 27 11:12 db
drw-rw-rw-   1 user     group           0 Mar 27 11:12 logs
drw-rw-rw-   1 user     group           0 Mar 27 18:15 RapidWeaver
drw-rw-rw-   1 user     group           0 Mar 27 18:22 wwwroot
226 Transfer ok.
CWD /
250 CWD command successful. "/" is current directory.
CWD wwwroot
250 CWD command successful. "/wwwroot" is current directory.
PWD
257 "/wwwroot" is current directory.
PORT 192,168,1,2,213,170
200 Port command successful.
LIST
150 Opening data connection for directory list.
drw-rw-rw-   1 user     group           0 Mar 27 18:22 .
drw-rw-rw-   1 user     group           0 Apr 01 11:53 ..
-rw-rw-rw-   1 user     group          98 Mar 27 18:16 index.php
-rw-rw-rw-   1 user     group       15407 Mar 27 18:16 license.txt
-rw-rw-rw-   1 user     group        7802 Mar 27 18:16 readme.html
drw-rw-rw-   1 user     group           0 Mar 27 18:18 wp-admin
-rw-rw-rw-   1 user     group        1959 Mar 27 18:18 wp-atom.php
-rw-rw-rw-   1 user     group         888 Mar 27 18:16 wp-blog-header.php
-rw-rw-rw-   1 user     group        2529 Mar 27 18:16 wp-comments-post.php
-rw-rw-rw-   1 user     group        3778 Mar 27 18:16 wp-commentsrss2.php
-rw-rw-rw-   1 user     group         896 Mar 27 18:16 wp-config.php
-rw-rw-rw-   1 user     group         887 Mar 27 18:16 wp-config-sample.php
drw-rw-rw-   1 user     group           0 Apr 02 00:38 wp-content
-rw-rw-rw-   1 user     group         890 Mar 27 18:17 wp-cron.php
-rw-rw-rw-   1 user     group         130 Mar 27 18:17 wp-feed.php
drw-rw-rw-   1 user     group           0 Mar 27 18:22 wp-includes
-rw-rw-rw-   1 user     group        1444 Mar 27 18:22 wp-links-opml.php
-rw-rw-rw-   1 user     group       16248 Mar 27 18:16 wp-login.php
-rw-rw-rw-   1 user     group        5253 Mar 27 18:16 wp-mail.php
-rw-rw-rw-   1 user     group         301 Mar 27 18:16 wp-pass.php
-rw-rw-rw-   1 user     group        2286 Mar 27 18:16 wp-rdf.php
-rw-rw-rw-   1 user     group         259 Mar 27 18:16 wp-register.php
-rw-rw-rw-   1 user     group        1277 Mar 27 18:16 wp-rss.php
-rw-rw-rw-   1 user     group        2097 Mar 27 18:16 wp-rss2.php
-rw-rw-rw-   1 user     group        9730 Mar 27 18:16 wp-settings.php
-rw-rw-rw-   1 user     group        3635 Mar 27 18:16 wp-trackback.php
-rw-rw-rw-   1 user     group       39848 Mar 27 18:16 xmlrpc.php
226 Transfer ok.
CWD /wwwroot
250 CWD command successful. "/wwwroot" is current directory.
CWD wp-content
250 CWD command successful. "/wwwroot/wp-content" is current directory.
PWD
257 "/wwwroot/wp-content" is current directory.
PORT 192,168,1,2,213,171
200 Port command successful.
LIST
150 Opening data connection for directory list.
drw-rw-rw-   1 user     group           0 Apr 02 00:38 .
drw-rw-rw-   1 user     group           0 Mar 27 18:22 ..
-rw-rw-rw-   1 user     group          32 Mar 27 18:17 index.php
drw-rw-rw-   1 user     group           0 Apr 01 19:20 plugins
drw-rw-rw-   1 user     group           0 Mar 31 08:56 themes
drw-rw-rw-   1 user     group           0 Apr 02 00:38 uploads
226 Transfer ok.
CWD /wwwroot/wp-content
250 CWD command successful. "/wwwroot/wp-content" is current directory.
CWD uploads
250 CWD command successful. "/wwwroot/wp-content/uploads" is current directory.
PWD
257 "/wwwroot/wp-content/uploads" is current directory.
PORT 192,168,1,2,213,172
200 Port command successful.
LIST
150 Opening data connection for directory list.
drw-rw-rw-   1 user     group           0 Apr 02 00:38 .
drw-rw-rw-   1 user     group           0 Apr 02 00:38 ..
226 Transfer ok.
CWD /wwwroot/wp-content
250 CWD command successful. "/wwwroot/wp-content" is current directory.ITE CHMOD 777 uploads
200 CHMOD command successful.
CWD /wwwroot/wp-content
250 CWD command successful. "/wwwroot/wp-content" is current directory.
PWD
257 "/wwwroot/wp-content" is current directory.
PORT 192,168,1,2,213,174
200 Port command successful.
LIST
150 Opening data connection for directory list.
drw-rw-rw-   1 user     group           0 Apr 02 00:38 .
drw-rw-rw-   1 user     group           0 Mar 27 18:22 ..
-rw-rw-rw-   1 user     group          32 Mar 27 18:17 index.php
drw-rw-rw-   1 user     group           0 Apr 01 19:20 plugins
drw-rw-rw-   1 user     group           0 Mar 31 08:56 themes
drw-rw-rw-   1 user     group           0 Apr 02 00:38 uploads
226 Transfer ok.


So I set it as 777 which it reports as successful.   This is the uploads folder inside WP-Content

Then the listing at the end has the permissions as drw-rw-rw.  Which corresponds to a 666 setting.

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Setting Folder permissions
« Reply #3 on: April 03, 2007, 02:25:01 PM »
It seems that Gene6 FTP server doesn't support the executable bit setting. Normally you would see an 'x' in the permissions string for folders meaning that it's possible to enter into them. Since the executable bit is apparently ignored by the server, the maximum permissions you could set would be rw-rw-rw- which is 666. So that's one mystery solved.

Going back to the original problem you reported with Wordpress and your blog, you can see from the transcript you posted that your folders are all set with rw-rw-rw- which means they're already set to allow read and write access for everyone, including the server... I'm no expert on web sites or web servers, but that seems all fine to me.

Please post if you have further information.

Sorry I can't help you more!