Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

jailshell and setting up timezone as a user?

Discussion in 'General Discussion' started by jsosic, May 8, 2007.

  1. jsosic

    jsosic Registered

    Joined:
    May 8, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    Hi guys.

    Where can I find documentation for jailshell? It writes history down to .bash_history, but it doesn't read .bashrc at startup, and if I want to set up my timezone being different from the system timezone, then I have to set up TZ variable, but that ain't happening - once again - because jailshell doesn't read ~/.bashrc file.

    thanx
     
  2. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    991
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    I don't think this has todo with jailshell, but rather with bash (which is probably "bound" to jailshell.

    Use the .bach_profile files instead of the .bashrc file.

    From the bach man page:

    Code:
          [B]When bash is invoked as an interactive login shell[/B], or  as  a  non-interactive  shell
           with the --login option, it first reads and executes commands from the file /etc/pro-
           file, if that file exists.  After reading that file, it  looks  for  [B]~/.bash_profile[/B],
           ~/.bash_login,  and  ~/.profile,  in that order, and reads and executes commands from
           the first one that exists and is readable.  The --noprofile option may be  used  when
           the shell is started to inhibit this behavior.
    
           When   a  login  shell  exits,  bash  reads  and  executes  commands  from  the  file
           ~/.bash_logout, if it exists.
    
           [B]When an interactive shell that is not a login shell is started[/B], bash reads  and  exe-
           cutes  commands  from[B] ~/.bashrc[/B], if that file exists.  This may be inhibited by using
           the --norc option.  The --rcfile file option will force bash to read and execute com-
           mands from file instead of ~/.bashrc.
    
    
    hth
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice