Shell User profile with jailkit

Discussion in 'Installation/Configuration' started by muekno, Feb 21, 2020.

  1. muekno

    muekno Member HowtoForge Supporter

    I have a /etc/profile with some settings like
    <code>export LS_OPTIONS='--color=auto'
    alias ll='ls -la $LS_OPTIONS'
    alias ls='ls $LS_OPTIONS'
    alias llh='ls -lah $LS_OPTIONS'
    alias lls='ls -laSrh $LS_OPTIONS'
    alias llt='ls -lath $LS_OPTIONS'
    alias md='mkdir'
    alias cls="clear"</code>
    to make live easier.
    But this does not work for the shell user with jailkit installed.
    Loged in as the shell user I tried to create a .bash_profile, the system does not allow it.
    Modifying the existing .profile file does not work too.
    Can you give me a hint.
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Just tested, and
    • can create .profile as jailed user, and used vim to write suitable contents
    • can as root edit the jailed users /etc/profile file, and modify it with test contents
    However, the jailed user does not see the changes after next login. I guess it is because jailed users shell does not execute the usual login scripts. Did not find documentation about this after quick search.
  3. muekno

    muekno Member HowtoForge Supporter

    Tanks for response, exactly what i have, can edit file, but no effect. not funny. Specially shell users who are just able to configure their website would be happy about some shell extensions.
    I can live with that but wondered about.

    Happy "Faschings" wekend

  4. krassle

    krassle New Member

    @muekno Create ~/.bashrc and copy your stuff there then execute "source ~/.bashrc" as shell user or log out and back in to see the change.
    It should work.

Share This Page