 |
|
|
Custom cPanel Last Login
Last
Updated:
November 30, -0001
So you are a webhost and one of your customers is having some trouble in CPanel, and wants your help. Well of course you are going to have to log into CPanel, and have a look around to identify what exactly is wrong, or why they can't get that particular function of CPanel to work properly. The problem with logging in with the users CPanel username and password is that it shows the last login IP / Host Address, which will be your home IP or your work IP address. To most this is unprofessional, and should show something such as "Admin" "WebHost" "Support Team". It IS possible for CPanel to display such information, and now we will tell you how.
You have 2 options. You can login to the user's CPanel account with their username, and your root password through SSL, which will show Last Login: 127.0.0.1 or you can login with their username and their password, OR their usernam enad your root password, and simply edit the .lastlogin file to say what you want. Here's how to do each option.
Option 1:
1. Login to CPanel via SSL
https://www.domain-name-here.com:2083/
2. You can login with the customers CPanel username/password combo
or you can use the customers CPanel username and the root password.
3. The last login IP/Address will now show "127.0.0.1".
This isn't a custom last login, but it will show the local ip.
Option 2:
1. Login to the customers CPanel account. SSL or Not it doesn't matter.
2. Do whatever you need to do in their CPanel account.
3. SSH into your server as root.
(Much easier than wondering if the customers account has SSH access or not.
4. Type: pico /home/username/.lastlogin
(Replace username with the user's account you just logged into cPanel with in step 1)
5. Now erase the IP found here, and replace it with Admin, Support Team, or whatever you would like it to say.
6. CTRL-X, Y, Enter - To save, and exit the document.
7. Now you can exit SSH you are done, and your user will now see what
you typed in step #5 when they login to CPanel again.
You must do this AFTER you go in cPanel or it will reset to your IP. |
|
 |
|