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.

Jailed Shell Error (Argument "\n" isn't numeric)

Discussion in 'General Discussion' started by Aita, Feb 21, 2011.

  1. Aita

    Aita Member

    Joined:
    Sep 16, 2010
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    Hi

    When i set a user to Jailed Shell in whm the users gets the following error when loging in.

    Argument "\n" isn't numeric in numeric lt (<) at /usr/local/cpanel/bin/setupvirtfs line 279, <$file_fh> line 365.
    -jailshell-3.2$

    If i set the shell to a normal shell everything works fine, but normal users should not have full shell.

    Anyone know howto fix this issue?

    This only happens on one cpanel server, version (11.28.76)
     
  2. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you try upgrading your cPanel to the stable version?
     
  3. Aita

    Aita Member

    Joined:
    Sep 16, 2010
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    I upgraded the server to the latest release version, the problem is still there.
    Downgrading it to stable messes with some horde settings and i do not wish to do that.

    Besides both release and stable should be fully functional in a production environment.
     
  4. Aita

    Aita Member

    Joined:
    Sep 16, 2010
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    Does anyone have an answer to this?
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might want to put in a ticket to cPanel support if you believe this to be a bug. There's a link on top of every page of the forums titled "Bugs" that should take you to the proper form.
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    In looking at the setupvirtfs script the lines in question are reading from /etc/passwd (or /etc/group). You might want to check both /etc/passwd and /etc/group for invalid data. Specifically it appears there is either a literal \n or a new line in the first field of one of the entries.
     
Loading...

Share This Page