The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to change default shell

Discussion in 'General Discussion' started by Arthur, Mar 22, 2003.

  1. Arthur

    Arthur Member

    Joined:
    Jan 23, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to change default shell from /bin/bash to /bin/rbash so that all new cpanel accounts use rbash? I'm tired from manully modifying /etc/passwd and cpanel always overwrite it after I use the feature "edit packages" in WHM.

    Thanks in advance!
     
  2. MrHits

    MrHits Well-Known Member

    Joined:
    Oct 31, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    If you are using vi use the following command to do a global replace inside the file:

    :%s/bash/rbash/g
     
  3. MrHits

    MrHits Well-Known Member

    Joined:
    Oct 31, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    If you are using vi use the following command to do a global replace inside the file:

    :%s/bash/rbash/g
     
Loading...

Share This Page