change admin username to prevent robot attacks?

change admin username to prevent robot attacks?

de Carol Booth -
Número de respuestas: 5
I've twice had what appear to be robot attacks, where I get lots of failed logins as admin in very quick succession. I have read that a simple tactic to avoid these is changing the admin username. If I do this, do I also need to change
$CFG->admin = 'admin';

to another value?
Thanks
Carol
Promedio de valoraciones: -
En respuesta a Carol Booth

Re: change admin username to prevent robot attacks?

de Tim Hunt -
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers
No, $CFG->admin controls the URL used to access what is normally http://example.com/moodle/admin/...

If you want to move the admin pages to a URL like http://example.com/moodle/maintenance/..., then set $CFG->admin = 'maintenance'.
En respuesta a Carol Booth

Re: change admin username to prevent robot attacks?

de Deb Smith -

I have a similar question.  Recently my admin account was hijacked and I was unable to login to the Administrator's Control Panel.  Where do I change my userid so that instead of admin, it is kittycat or some such name?  Just in my user profile?  I assume that changing my user profile will automatically update the database?  From the response here, I also assume that I don't have to make any changes to the config.php?

Thanks in advance for your help!

En respuesta a Deb Smith

Re: change admin username to prevent robot attacks?

de Guillermo Madero -

Yes, just in your user profile. Yes, it will automatically update your database. And, no, you do not have to make any changes to config.php.

Cheers!