Hi guys,
I have one question. Have cPanel different installation versions? I see some differences between exactly two machines.
For example, both is running:
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
WHM 11.2.0 cPanel 11.6.0-R15076
Note:
Machine 1 - /etc/bashrc:
Machine 2 - bashrc:Code:# /etc/bashrc # System wide functions and aliases # Environment stuff goes in /etc/profile # For some unknown reason bash refuses to inherit # PS1 in some circumstances that I can't figure out. # Putting PS1 here ensures that it gets loaded every time. alias which="type -path" export EDITOR="pico" export VISUAL="pico" PS1="\u@\h [\w]# " whoami=`whoami` if [ -e "~/.dns" ]; then DNS=`cat ~/.dns` PS1="\u@$DNS [\w]# " else if [ -e "/var/cpanel/users/$whoami" ]; then eval `grep DNS= /var/cpanel/users/$whoami` if [ ! "$DNS" = "" ]; then echo -n "$DNS" > ~/.dns PS1="\u@$DNS [\w]# " fi fi fi if [ ! -e ~/public_html/cgi-bin ]; then mkdir -p ~/public_html/cgi-bin fi if [ ! -e ~/public_ftp ]; then mkdir -p ~/public_ftp fi mesg y alias wtf="watch -n 1 w -hs" alias wth="ps -uxa | more" # Now for the dos users alias dir="ls" alias copy="cp" alias del="rm" alias deltree="rm -r" alias move="mv" alias ff="whereis" alias attrib="chmod" alias edit="pico" alias chdir="cd" alias mem="top" alias search="grep" alias pico="pico -w -z" LS_OPTIONS='--color=tty -F -a -b -T 0'; export LS_OPTIONS; alias ls='/bin/ls $LS_OPTIONS'; alias dir='/bin/ls $LS_OPTIONS --format=vertical'; alias vdir='/bin/ls $LS_OPTIONS --format=long'; alias d=dir; alias v=vdir; eval `dircolors -b` export JAVA_HOME=/usr/local/jdk export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/classes.zip export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin" #cPanel Added Limit Protections -- BEGIN #unlimit so we can run the whoami ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null LIMITUSER=$USER if [ -e "/usr/bin/whoami" ]; then LIMITUSER=`/usr/bin/whoami` fi if [ "$LIMITUSER" != "root" ]; then ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null else ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null fi #cPanel Added Limit Protections -- END
In the "Tweak Settings" we can some comments about options:Code:# /etc/bashrc # System wide functions and aliases # Environment stuff goes in /etc/profile # by default, we want this to get set. # Even for non-interactive, non-login shells. if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then umask 002 else umask 022 fi # are we an interactive shell? if [ "$PS1" ]; then case $TERM in xterm*) if [ -e /etc/sysconfig/bash-prompt-xterm ]; then PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm else PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"' fi ;; screen) if [ -e /etc/sysconfig/bash-prompt-screen ]; then PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen else PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\033\\"' fi ;; *) [ -e /etc/sysconfig/bash-prompt-default ] && PROMPT_COMMAND=/etc/sysconfig/bash-prompt-default ;; esac # Turn on checkwinsize shopt -s checkwinsize [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ " fi if ! shopt -q login_shell ; then # We're not a login shell for i in /etc/profile.d/*.sh; do if [ -r "$i" ]; then . $i fi done unset i fi # vim:ts=4:sw=4 #cPanel Added Limit Protections -- BEGIN #unlimit so we can run the whoami ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null LIMITUSER=$USER if [ -e "/usr/bin/whoami" ]; then LIMITUSER=`/usr/bin/whoami` fi if [ "$LIMITUSER" != "root" ]; then ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null else ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null fi #cPanel Added Limit Protections -- END
Machine 1:
Machine 2:Code:** The login theme to display for cPanel Login. See the Universal Theme Manager for options. If you are posting to /login/ you can include "login_theme" as a uri/form variable to overwrite this setting on a per case basis.
Note Machine 1 comments starts with '**' and Machine 2 not.Code:The login theme to display for cPanel Login. See the Universal Theme Manager for options. If you are posting to /login/ you can include "login_theme" as a uri/form variable to overwrite this setting on a per case basis.
Anyone can explain some comments about these differences?



LinkBack URL
About LinkBacks
Reply With Quote




