Is There A Way To Block Direct Cpanel Login

Jan 24, 2007

I use a login script on my hosting site. and i was wondering if there was any way or any program that would allow me to Block people from going mydomain.com then cpanel?

And forcing them to go to my site to use the cpanel login script on my website?

Im sure that if there was a way to disable Cpanel login it would aslo block the scipt on my site.

Is there a solution to my little perdicament here?

Any software or scripts that do what im looking for?

View 9 Replies


ADVERTISEMENT

Disabled Direct Root Login

Oct 24, 2009

im able to login to root via SU perfectly

One problem: All my old files and folders are owned by ROOT so that means my SU account named XXX cant edit/add/delete anything from my SFTP because of folder/file permission.

Is there anyway my SUDO(wheel) account can still edit these files own by ROOT?

View 3 Replies View Related

Disabling Direct Root Login

Apr 16, 2008

login as: hen
hen@xx.xx.xx.xx's password:
Last login:
hen@root [~]# su -
Password:
su: incorrect password

I verified that root password is correct, but no matter how many times I tried, I can't su in

Where's my su permission
-rwxr-xr-x 1 root wheel 24060 Mar 22 2007 /bin/su*

here's inside /etc/group
wheel:x:10:root,hen

View 14 Replies View Related

Disable Direct Root Login

May 16, 2007

I tried to disable direct root login but had to struggle to find step-by-step instructions and have written the steps one needs to follow to disable direct root login.


This is an additional security measure where we prevent direct root logins and instead create a user to login and then use a command ‘su –‘ to gain root privileges.

The only risk in this procedure is that you may prevent root login but forget to add the user to the wheel group - effectively locking yourself out of the system.

Follow the steps below and you will not face a problem.

STEP 1: Let us create a user and add it to the wheel group.

For e.g. we want to create a user neonix and give him root privileges.

SSH into your server as root and follow the below commands to create a user.

groupadd neonix

useradd neonix –gneonix

passwd neonix

enteryouruserpasswordhere

verifyyouruserpasswordhere

// Please note -g in the second line

// You can replace neonix with any username of your choice.

STEP 2: Add user to wheel group.

Use your browser to Login to your WHM panel and click on Manage Wheel Group Users.

You will see the user you just added (neonix). Select the user and click ‘Add to group’.

You will see that the user has been added –
Users Currently in the wheel group root,neonix

You have successfully added a user to the 'wheel' group who will be able to 'su -' to root.

LOGOUT OF SSH

Before we disable root login, let us check if the user can login and su – to gain root privileges.

SSH into your server as 'neonix'
Login as: neonix
Password : enteryouruserpasswordhere
su –
password: enter root password here

You have successfully logged in and have root privileges. Now let us disable root login.

STEP 3: Disable Direct Root Login

(The below steps are from webhostgear.com)

1. Copy and paste this line to edit the file for SSH logins
pico -w /etc/ssh/sshd_config

2. Find the line
Protocol 2, 1

3. Uncomment it (Remove #) and change it to look like
Protocol 2

4. Next, find the line
PermitRootLogin yes

5. Uncomment it (Remove #) and make it look like PermitRootLogin no

6. Save the file Ctrl+X then Y then enter

7. Now you can restart SSH
/etc/rc.d/init.d/sshd restart

Now, no one will be able to login to root with out first logging in as 'neonix' and 'su -' to root, and you will be forcing the use of a more secure protocol.

Just make sure you remember both passwords!

View 14 Replies View Related

Which Is More Secure , Using Public Key Or Direct Login

Aug 15, 2007

I was worry about which is more seucre to login to the server

disabling the direct login and using the public key (ssh-dss) with 2084 bit length ?

or use the direct login?

and if the public key is more secure , should we use passphrase when generating the key? or no?

View 11 Replies View Related

SSH Keys & Direct Root Login Disabled

Jul 3, 2008

Currently I have a server that has direct root SSH access disabled (have to login as regular user then su to root), but I am currently working on setting up authentication via SSH keys, but I can't seem to get it working with direct root SSH access disabled? Is this normal, and if so is there anyway to work around it?

Basically I'd like to be able to authenticate both ways; both with SSH keys or by logging in as a regular user and su to root.

View 8 Replies View Related

VPS With WHM/cPanel Webmail - Login ... Then Login Fails

Jan 31, 2008

Just got a new additional VPS with WHM/cPanel.

Browse to www.mydomain.com/webmail and get login box > login accepted and taken to Horde/Squirrelmail choice screen > choose Squirrelmail and get login box ... login not accepted! > Retry and choose Horde ... login not accepted!

The login is correct and the results are the same when logging in as root, or through /cPanel or /Webmail.

View 3 Replies View Related

CPanel To Direct Admin

May 12, 2007

I don't start a CPanel vs DA war, but need to get a "what might be different" list re a VPS.

When I got my present VPS (moved from shared hosting) I had it initially set up with DA. All my previous experience had been with CP on my shared hosting account, but I had read about CP being a bit of a resource hog.

When I tried to set up my VPS, I got it wrong. I ended up with 2 instances of "mymainsite.com" on the server. I got so confused talking with support and their UNIX lingo, that I had them switch to CPanel.

I'm probably going to move to another host and thinking of using DA to save RAM.

I'm not a reseller of hosting, just have 20+ small to very small sites. I have a number of mySQL databases that get a fair number of queries. I have 1 vBulletin app but the traffic on that site is VERY low.

So what will I need to learn differently in DA?

-cron jobs
-parked domains
-migrating sites
-backing up sites

View 14 Replies View Related

CPanel To Direct Admin

Apr 29, 2007

I did some searching but didn't find a ton of reliable information. Is there an easy way to move cpanel accounts over to a direct admin box?

View 3 Replies View Related

WHM/Cpanel Block All Non Ssl Logins

Oct 30, 2008

We are being required to turn off all non-ssl logins to our server. I have turned on ssl redirection, but that only works when access by domain.

if a user types in the direct port number either http://domain.com:2086
or http://xxx.xxx.xxx.xxx:2086
they can still get access to the non-ssl login page.

I need to be able to disable all port access to non-ssl login pages for ports 2086,2082 and 2095.

My servers are running CSF+LFD and i have tried removing the ports from the configuration, but i still can gain access.

View 2 Replies View Related

Login To Whm Or Cpanel

Nov 14, 2008

i have a problem with my box .. after i reboot the server the login to whm or cpanel didn't work ... everytime i must use this command

/etc/rc.d/init.d/iptables stop
then the logins work successfully

so .. what's the problem with the iptables with me?

View 6 Replies View Related

Login To Cpanel And WHM

Apr 23, 2008

I have someone on my server that is having problems login to Cpanel and WHM.

They can view all websites on the server even theirs, but they cannot login.

They keep getting: Firefox cannot establish a connection with the server.

Even in IE they get a error message.

They even tried with "theirdomain.com/cpanel" and got the same thing.

They are using a rounter also, so I told them to try unhooking that, but my main question is, it doesn't seem that their IP is blocked as I checked, so is there anything else on the server that could cause this or is it something on their end?

View 8 Replies View Related

Can't Login CPanel/WHM

Mar 1, 2008

I've unmanaged server, everything running well

but I can't login into cpanel/whm I tried :
>myip:2086
>myip:2087
>myip:2082
>myip:2083

when I try to login the [The connection was reset]Firefox msg.

I can login through ssh,and i tried to restart cpanel service and I update it...

View 11 Replies View Related

[cPanel] How Block Starting PERL Scripts

Jun 10, 2007

How to block starting PERL scripts to my customers?

View 6 Replies View Related

SSL Possible To Install In WHM/CPANEL Login

Nov 6, 2009

i worrying about WHM/CPanel login without SSL, it possible to install SSL?

View 5 Replies View Related

CPanel Root Login

May 28, 2009

Is it possible to disable direct root login on Cpanel servers?

if yes, please how.

If not, what would be the best to do to secure 'root' account.

View 14 Replies View Related

Cpanel Login Error

Apr 20, 2008

I am using VPS and cpanel/WHM is installed on it.

When I try to login the Cpanel it gives me following URL.

====================================================================
121.246.209.2 - threesom [04/20/2008:07:08:36 -0000] "GET /frontend/x2/index.html HTTP/1.1" 404 0 [url]
(compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)"
====================================================================

View 2 Replies View Related

Cpanel Login Script

Jul 16, 2007

I am struggling to find the best cpanel login script, mixed with modernbill (5)

cpanel
whm
webmail
modernbill (5x)

I found this (w/o MB)
[url]

However, trying this I get this error

Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/login.php:1) in /home/user/public_html/login.php on line 37

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved