hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : SSH Access when noshell is on?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

SSH Access when noshell is on?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-20-2009, 10:00 PM
wmowat wmowat is offline
Junior Guru Wannabe
 
Join Date: Dec 2004
Location: Ottawa, ON
Posts: 41

SSH Access when noshell is on?


I got a notification from CFS that said:

SSH login alert for user...

I checked the account in WHM and it says noshell.

How is this possible? Only 1 trusted user has shell access and this isn't that user...any ideas?

Reply With Quote


Sponsored Links
  #2  
Old 12-20-2009, 10:02 PM
Deroba Deroba is offline
Web Hosting Master
 
Join Date: Nov 2009
Location: Colombia
Posts: 2,115
What hosting provider do you use?

I remember that something similar happend today

__________________
Diego Rodríguez - diego@deroba.org
Professional Services since 2009


Reply With Quote
  #3  
Old 12-21-2009, 01:24 AM
activelobby4u activelobby4u is offline
Your support partner
 
Join Date: Apr 2005
Location: Queen of Arabian Sea
Posts: 2,213
Quote:
Originally Posted by wmowat View Post
I got a notification from CFS that said:

SSH login alert for user...

I checked the account in WHM and it says noshell.

How is this possible? Only 1 trusted user has shell access and this isn't that user...any ideas?
Did he actually login ..or was it a try ?

Check your secure logs to find this out ..

__________________
Sandy
Supportlobby.com - Redefining Hosting Support
Spiralbean.com - Lightning Speed Lightning Ideas

Reply With Quote
Sponsored Links
  #4  
Old 12-21-2009, 01:52 AM
fwaggle fwaggle is offline
Web Hosting Master
 
Join Date: Mar 2008
Posts: 1,715
I'm not sure, but I believe "noshell" type things simply return immediately on execution... therefore a user with a bad shell is actually able to "log in" via SSH if they enter the correct password, they just can't do anything because the shell immediately exits.

__________________
Jamie @ Sabrienix
Now with Mumble Hosting!

Reply With Quote
  #5  
Old 12-21-2009, 05:48 AM
laswatech laswatech is offline
WHT Addict
 
Join Date: Dec 2009
Posts: 157
Quote:
I got a notification from CFS that said:

SSH login alert for user...
I believe it should be a failed login alert. Kindly check and let us know.

Reply With Quote
  #6  
Old 12-21-2009, 07:15 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,493
Quote:
Originally Posted by wmowat View Post

SSH login alert for user...
That looks to me a successful login attempt notification. I would recommend editing the /etc/passwd file and setting

Quote:
/sbin/nologin
instead of

Quote:
/usr/local/cpanel/bin/noshell
for the user OR using the 'usermod' command

Quote:
usermod -s /sbin/nologin username

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #7  
Old 12-21-2009, 07:18 AM
BTCentral - Ben BTCentral - Ben is offline
[ VPS Enthusiast ]
 
Join Date: Nov 2009
Location: Cheltenham, UK
Posts: 1,323
A successful CSF login will have a subject something along the lines of this:
lfd on <hostname>: SSH login alert for user <user> from <ip>

However, if the login fails a number of times, the subject would be this:
lfd on <hostname>: blocked <ip>

Therefore from the OP's post, it sounds like it was the former here.

If I were you, first thing I would do is run chkrootkit or similar to try and determine if the server has been compromised or not.
I would also recommend checking your /etc/passwd file to make sure that there are not users with shell access there that should not have.

It may also be worthwhile checking what happens when /usr/local/cpanel/bin/noshell is executed, because there is always the possibility that it may have somehow been replaced with a working one.

Hope this helps.

Edit: madaboutlinux has posted some very useful suggestions above too, definitely check them out.

__________________
Ben Thomas, Director - BTCentral Web Development Services
http://www.btcentral.org.uk - Need a custom Web App? Visit us online.


Last edited by BTCentral - Ben; 12-21-2009 at 07:24 AM.
Reply With Quote
  #8  
Old 12-21-2009, 07:36 AM
LDHosting LDHosting is offline
WHT Addict
 
Join Date: Mar 2009
Posts: 120
You will also get that message from CSF if the user logged into SFTP. Check your /var/log/secure and see if the login shows something similar to:

Code:
Accepted password for USERNAME from xx.xxx.xxx.xxx port xxxx ssh2
pam_unix(sshd:session): session opened for user USERNAME by (uid=0)
subsystem request for sftp

__________________
Quality European Web Hosting - LDHosting.com
High Quality, Low Cost Web Hosting Services
www.ldhosting.com

Reply With Quote
  #9  
Old 12-23-2009, 03:30 PM
flashwebhost flashwebhost is offline
Web Hosting Master
 
Join Date: Jan 2002
Posts: 1,346
Run

Code:
cat /etc/passwd |grep USERNAME
cat /var/log/secure |grep USERNAME

__________________
WebHostingNeeds.com

Reply With Quote
  #10  
Old 12-23-2009, 06:18 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,634
Noshell allows a full login to the server, but it doesn't drop into a shell. It informs the user to ask their host for shell access.

Quote:
root@server [~]# /usr/local/cpanel/bin/noshell
Shell access is not enabled on your account!
If you need shell access please contact support.
It will show up as a real login.

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #11  
Old 12-24-2009, 01:48 AM
BarackObama BarackObama is offline
Disabled
 
Join Date: Apr 2009
Location: whitehouse
Posts: 569
Does the command `last` report the access?
Quote:
Originally Posted by wmowat View Post
I got a notification from CFS that said:

SSH login alert for user...

I checked the account in WHM and it says noshell.

How is this possible? Only 1 trusted user has shell access and this isn't that user...any ideas?

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jailshell or noshell? 0nijin Hosting Security and Technology 4 08-10-2009 12:25 AM
Can't access Ping or Access SSH nerdster VPS Hosting 8 05-01-2009 02:38 PM
disabling SSH root access but enabling SSH keys how to do that? sharmaine1111 Hosting Security and Technology 7 04-03-2009 11:26 PM
SSH Access :( saghir69 Programming Discussion 9 12-02-2004 08:10 PM
SSH Access Artashes Web Hosting 9 08-15-2003 12:09 PM

Related posts from TheWhir.com
Title Type Date Posted
OnRamp Access to Construct Second Austin Data Center Web Hosting News 2013-02-28 10:45:40
NYSE Technologies Expands Network to Equinix NY5 Data Center Web Hosting News 2012-07-12 16:34:52
StillSecure Updates Safe Access Tool to Enable Mobile Devices Web Hosting News 2012-03-05 15:42:11
Security Firm StillSecure Launches New Version of Safe Access Network Solution Web Hosting News 2011-08-12 17:30:18
United Nations Report Declares Internet Access a Human Right Web Hosting News 2011-06-06 15:19:58


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?