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.

BUG Founded...

Discussion in 'General Discussion' started by SHSaeed, Aug 22, 2002.

  1. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Every few days we check the /etc/passwd files to make sure no accounts have shell access since WHM is not very reliable in that area. Today one of our resellers suspended an account and when he later unsuspended it we noticed that WHM put the account back into the /etc/passwd with shell access. Just to be sure, we tried this with a couple of other accounts and came to same result.

    This has been reported: http://web.cpanel.net/bugzilla/show_bug.cgi?id=783
     
  2. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    This has been like that for months now. I am used to going into /etc/passwd and correcting the entries, however I do not currently have resellers. I can see this as a real nightmare for hosts who have resellers :p
     
  3. m.filpo

    m.filpo Registered

    Joined:
    Nov 6, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Fast Fixxing for suspending BUG

    The fast way is:

    edit /scripts/unsuspendacct

    search these lines:

    if ((! -e $shell) || (! $shell)) {
    $shell = &/bin/bash&;
    }

    remplace /bin/bash for /usr/local/cpanel/bin/noshell

    That’s it

    Also, you can edit :
    edit /scripts/suspendacct

    search these lines:
    print &Changing Shell to /bin/false...&;
    system(&chsh&,&-s&,&/bin/false&,&$user&);
    print &Done\n&;

    you can remove them.
    And remember to remove the lines in the unsuspend file

    But, if you have someone wit shell access, it will stay after suspend.

    So i recommend the first one.

    I repeat, this is the fast way,
    There is anothe one better, but i have a headache now..

    Thanks, see ya

    Manuel Filpo
     
Loading...

Share This Page