Hi there
I played around with acces-rights to solve a problem. Since then the first problem is solved but i got a new one :-(
I can't login to my site with my admin-account !
That's the script, my hoster gave my and ordered me to run ...
<?php
echo '1. Directories';
echo '<pre>';
$last_line = system("/usr/bin/permission . -type d -group apache -exec chmod 777 {} \\; -printf 'Changing permissions of %p - %m -> 777 \n'", $retval);
echo '
</pre>
<hr />' . $retval;
echo '<p>';
echo '2. Files';
echo '<pre>';
$last_line = system("/usr/bin/permission . -type f -group apache -exec chmod 666 {} \\; -printf 'Changing permissions of %p - %m -> 666 \n'", $retval);
echo '
</pre>
<hr />' . $retval;
?>
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- PLai@plai
PLai - 0 likes
- idiotter@idiotter
idiotter - 0 likes
- Brett@brett.profitt
Brett - 0 likes
- idiotter@idiotter
idiotter - 0 likes
- Lewis@lewis_eadg
Lewis - 0 likes
- idiotter@idiotter
idiotter - 0 likes
- PLai@plai
PLai - 0 likes
You must log in to post replies.This script just changes permission of files and directories. I doubt that it would affect your Elgg admin login. If you could login as regular Elgg user, there shouldn't be problem with admin user either.
site is runnig, but no user is able to login. what could the problem be ?
What did you change?
i just runed this script above :-(
check yoursite/actions/login.php
i changed rights to chmod755 but no effect. No user can login.
If you like to go and see its http://elgg.idotter.ch
What happens when a user tries to login? What's the error message if any?
I notice that someone posted a message 'yesterday' on your site. So did some users manage to login somehow?
Are you using any non-core plugins? You might want to try disabling all plugins by putting a file named 'disabled' in the 'mod' directory.
I don't understand why your hosting service wanted you to effectively "chmod a+w". That's not what you want your file permissions to be, even if that helped solve some of your problems. I'd do "chmod og-w" before even proceeding to attempt any more "fixes".