내용으로 건너뛰기

Changing Default Wordpress Username Bitnami Lightsail

0

I would like to change the default wordpress username from "user" to something more abstract and secure. It's a security risk to have the same user name for every wordpress installation, its widely known and easy for brute forcers to attack on less secure websites.

I want to know if there's a command sequence I can use through the SSH console to change the user, as it's not possible through wordpress settings.

질문됨 3년 전1.4천회 조회

2개 답변
0

Hello,

Wordpress is a third party application so I will provide the below on a best effort basis. You can certainly followup with Wordpress community support if needed as well and I will try to followup on further questions as possible.

One workaround to changing the username itself would be to create a separate administrator user and delete your original user to use the new admin instead.

Otherwise, Bitnami provides the following guide to access phpMyAdmin which can be used in tandem with the below link (third-party) in order to change your username directly (change user_name instead of user_password).

How to reset a WordPress a Wordpress username/password

Backups of your current site state before proceeding with any such changes is strongly advised!

AWS

답변함 3년 전

0

You can connect to the DB and: UPDATE wp_users SET user_login='newusername' WHERE ID=1;

You ALSO need to update the wp_sitemeta table ... which is a little more tricky ... ... if it's a fresh install and you're the only super admin, you can do: UPDATE wp_sitemeta SET meta_value='a:1:{i:0;s:11:"newusername";} ' WHERE meta_key='site_admins'; ... where the s:11 bit matches the number of characters in your newusername

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠