Wednesday, 30 July 2014

Script to Disable Shell Access For All cPanel users

    #!/bin/sh
    cd /var/cpanel/users/
    for file in *
    do
    chsh -s /usr/local/cpanel/bin/noshell $file
    done

No comments:

Post a Comment