vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   ./images/avatars directory not writable even though... (https://vborg.vbsupport.ru/showthread.php?t=290971)

Stefan118 11-18-2012 07:12 PM

Quote:

Originally Posted by kh99 (Post 2382273)
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.

Thats true, the vbulletin software does not login to the server with the owners username and password. Actualy, it doesn't login at all.

kh99 11-18-2012 07:12 PM

Part of the confusion might be the use of the word "user". I've been talking about users in the OS, which is different than vb users. If you set a directory to be writable to everyone (all OS users, that is), that probably isn't an issue.

Edit: I guess what I'm saying is that I agree, you should set it to 777 and see if that works.

Stefan118 11-18-2012 07:15 PM

i looked at mine, and it is also 755.
Also there is 1 directory in it, called thumbs, and there are 2 files called: index.html and thumbs.db

Snowhog 11-18-2012 07:15 PM

Quote:

Originally Posted by Stefan118 (Post 2382275)
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)

Which would be 'safer' - more 'conservative'? 0777 allows for execution, and 0666 does not, yes?

Stefan118 11-18-2012 07:17 PM

Quote:

Originally Posted by Snowhog (Post 2382283)
Which would be 'safer' - more 'conservative'? 0777 allows for execution, and 0666 does not, yes?

correct.

kh99 11-18-2012 07:20 PM

Quote:

Originally Posted by Snowhog (Post 2382283)
Which would be 'safer' - more 'conservative'? 0777 allows for execution, and 0666 does not, yes?

The "execute" bit means something different for files than directories. While it means "executable" for a file, for a directory is means "searchable". It may or may not work with the directory "searchable" bit set to off, I don't know. But you probably won't be able to do a directory listing in ssh.

Snowhog 11-18-2012 07:20 PM

As to this question:
Quote:

Originally Posted by Snowhog (Post 2382276)
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?


Stefan118 11-18-2012 07:22 PM

But this crossed my mind...
Do you save your images in your database or on the filesystem?
That could explain something.

Snowhog 11-18-2012 07:23 PM

Quote:

Originally Posted by Stefan118 (Post 2382287)
But this crossed my mind...
Do you save your images in your database or on the filesystem?
That could explain something.

I don't know, but given there are no images in the directory, yet the Administrators avatars and profile pictures are being seen, I'd say in the database. How can I validate that?

Stefan118 11-18-2012 07:25 PM

I'm off to work haha, KH99 will take over ;)


All times are GMT. The time now is 03:04 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.02062 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete