Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Def
    Def is offline
    Member
    Join Date
    Feb 2003
    Posts
    65

    Default Turn off SSH accounts all at once

    Hi,

    Is there a way to disable all shell accounts on the server (except root of course) in one fell swoop? I had only about 2 or 3 accounts allowed to have SSH but like an idiot clicked on jail all users in WHM/Manage Shell Users. Now there's like 400 shell accounts. Disabling them one at a time isn't appealing.

    Thanks!

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    The following should do it:

    replace /usr/local/cpanel/bin/jailshell /usr/local/cpanel/bin/noshell -- /etc/passwd
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Def
    Def is offline
    Member
    Join Date
    Feb 2003
    Posts
    65

    Default

    Awesome. Thanks Chirpy.

Similar Threads & Tags
Similar threads

  1. Turn off the SSH from Cpanel?
    By superhizmet in forum New User Questions
    Replies: 1
    Last Post: 11-09-2007, 06:40 AM
  2. Possible to turn off SSH?
    By prettydumb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-16-2007, 09:23 AM
  3. Turn on SpamAssassin for all accounts (Global ON)
    By hploh in forum E-mail Discussions
    Replies: 0
    Last Post: 09-14-2007, 04:35 AM
  4. How can I turn off urchin for most accounts?
    By Jeff-C in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-15-2004, 04:47 PM
  5. Jailshell - does it turn ssh ON?
    By jimjoe in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-18-2004, 09:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube