Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2012, 06:23 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default ./images/avatars directory not writable even though...

...the permissions and ownership on it are correct:

I'm logged onto our server now (SSH) and looking at the directory for avatars: ./images/avatars

The directory has no image files. The index.html file is there as well as the thumbs sub-directory, which is also devoid of any images files (it also has an index.html file).

I don't know what to make of this, as this is the only avatar directory I am aware of, yet all the Administrators avatars are being displayed, as well as their profile pictures.

Something interesting, is that in the AdminCP, when I run Maintenance > General Update Tools > Rebuild Avatar Thumbnails I get the message:
Quote:
The avatar thumbnail directory at /images/avatars/thumbs is not writable. Please contact your host for assistance. Thumbnails cannot be created until this issue is resolved.
Yet the permissions and ownership of the directory, files, sub-directory and files are correct:
Code:
drwxr-xr-x  3 root root  4096 2012-11-18 12:02 avatars
Code:
drwxr-xr-x  3 root root 4096 2012-11-18 12:02 .
drwxr-xr-x 24 root root 4096 2012-03-26 00:03 ..
-rw-r--r--  1 root root    1 2012-08-29 22:10 index.html
drwxr-xr-x  2 root root 4096 2012-01-10 08:35 thumbs
Code:
drwxr-xr-x 2 root root 4096 2012-01-10 08:35 .
drwxr-xr-x 3 root root 4096 2012-11-18 12:02 ..
-rw-r--r-- 1 root root    1 2012-08-29 22:10 index.html
Added:
This from the follow-up post by our member:
Quote:
I started noticing posts without avatars yesterday evening. Also, when trying to access the avatar panel I get the following error message:
Code:
benny_fletch, you do not have permission to access this page. This could be due to one of
several reasons:
Your user account may not have sufficient privileges to access this page. Are you
trying to edit someone else's post, access administrative features or some other
privileged system?
If you are trying to post, the administrator may have disabled your account, or it may
be awaiting activation.
EDIT: I am actually getting a similar error as above when trying to send a PM, accessing Settings -> General Settings, Edit Profile, and Edit Avatar. Also, it is the posting Avatar, I don't think I ever set one that shows in my profile page.
Suggestions? Comments? Thoughts?

Why is the avatars directory not writable, according to vBulletin, even though it is? How do I fix this?


Additionally, our members (non-Administrators) are also saying:

"I also get similar errors when trying to send PMs, access profile settings and general settings"
Reply With Quote
  #2  
Old 11-18-2012, 06:47 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit: Actually Stefan118's probably right. It could just be that the error message you posted is displaying the relative path.
Reply With Quote
  #3  
Old 11-18-2012, 06:49 PM
Stefan118 Stefan118 is offline
 
Join Date: Dec 2010
Location: Vaassen (Netherlands)
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The directory is not writable, becouse you do NOT have set the right permissions!

drwxr-xr-x means: chmod 755 permissions on a directory: writeable by owner, readable by all and where files are executable by all.

You need to set them to: drwxrwxrwx (chmod 666) which means that everyone can read, write and execute the files.
Reply With Quote
  #4  
Old 11-18-2012, 06:52 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stefan118 View Post
The directory is not writable, becouse you do NOT have set the right permissions!

drwxr-xr-x means: chmod 755 permissions on a directory: writeable by owner, readable by all and where files are executable by all.

You need to set them to: drwxrwxrwx which means that everyone can read, write and execute the files.
But ALL the directories under images have the exact same permissions, and those were set when the forum was installed. They must be correct, and, this problem didn't present itself until just a few days ago. Prior to that, all was just fine.
Reply With Quote
  #5  
Old 11-18-2012, 06:55 PM
Stefan118 Stefan118 is offline
 
Join Date: Dec 2010
Location: Vaassen (Netherlands)
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but still i mis the w from write, so your forum can't write to the directory.
It has been set to writable for a logged in user only (the owner of the site)
Reply With Quote
  #6  
Old 11-18-2012, 07:02 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stefan118 View Post
but still i mis the w from write, so your forum can't write to the directory.
It has been set to writable for a logged in user only (the owner of the site)
Well, the first set of 3 is the permissions for the owner of the file or directory. So if it was working before then it could be that the owner of the directories was changed, or maybe that the user the php scripts run as was changed.
Reply With Quote
  #7  
Old 11-18-2012, 07:04 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Edit: Actually Stefan118's probably right. It could just be that the error message you posted is displaying the relative path.
Hmm. Looking at the Avatar File Path note (AdminCP > Avatars > Add New Avatars) it does say:

Avatar File Path
This file path should be readable AND writeable by your web server (usually chmod 0777)

I can/will change the permissions, but how did the directory and sub-directory/contents permission get set to 0755? I didn't do it, and I know that none of the other Administrators did.

Hmm.
Reply With Quote
  #8  
Old 11-18-2012, 07:07 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They say to set it to 777 because then it will be writable for everyone. But it's possible that it could work with the permissions set to 755 depending on what user owns the file and what user the php scripts run as. I only know the basics of linux admin, but I think it's normal for the web server to run as a different user than the one that owns the files and directories, for security.
Reply With Quote
  #9  
Old 11-18-2012, 07:08 PM
Stefan118 Stefan118 is offline
 
Join Date: Dec 2010
Location: Vaassen (Netherlands)
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why it is changed i don't know.
But the fact is, you need to set it to eighter 666 or 777 (executable is an option)
Reply With Quote
  #10  
Old 11-18-2012, 07:08 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Well, the first set of 3 is the permissions for the owner of the file or directory. So if it was working before then it could be that the owner of the directories was changed, or maybe that the user the php scripts run as was changed.
Now I'm confused. I don't want to set anything within our forums root directory to globally read/writable (0777) unless that is what it is supposed to be, and I really doubt that that is the case. As I said, I changed nothing, nor our other Administrators.

What are the permissions for the ./images/avatars directory on your forums? What are the permissions on the contents of that directory? In other words, what are the 'default' permissions supposed to be?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06439 seconds
  • Memory Usage 2,264KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete