Quote:
Originally Posted by twobob
...
Okay, seemingly the OOTB config does not have a ENV value defined
Ash honours this. and a strace confirms that it now reads /home/root/.bashrc
Setting ENV in a .bashrc has it's drawbacks as it will be processed twice.
So - more sensibly - we should probably just set the ENV value at boot to another filename and populate that with the current current .bashrc noise.
Anyways - that is by the by and will be decided in the wash.
Here are some tests.
....
|
Re this: su -c 'su -v' -l will only work if the ENV AND the .basrc are processed... I.E same data twice.
So to this end I recommend doing that until a better option comes along.
vi !:command also honours this so, yeah.
Word to the wise and all that.
/etc/profile
Quote:
# system /etc/profile
export PATH=/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin
# use local X display if none set
if [ -z "$DISPLAY" ]; then
export DISPLAY=:0.0
fi
# If running interactively, then:
if [ "$PS1" ]; then
umask 022
export PS1="[\u@\h \W]\\$ "
export USER=`id -un`
export LOGNAME=$USER
export HOSTNAME=`/bin/hostname`
export HISTSIZE=1000
export HISTFILESIZE=1000
export PAGER='/bin/more '
export EDITOR='/bin/vi'
export INPUTRC=/etc/inputrc
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export ENV=/home/root/.bashrc
fi
if [ -f /home/root/.bashrc ]; then
. /home/root/.bashrc
fi
|
/home/root/.bashrc
Quote:
#uname -a
export LD_LIBRARY_PATH=/mnt/us/usr/lib:/usr/lib:/lib:/mnt/us/lib
export PATH=/mnt/us/usr/local/bin:/mnt/us/usr/bin:/mnt/us/bin:/mnt/us/usr/sbin:\
/mnt/us/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/mnt/us/home/root
#export LD_PRELOAD=/mnt/us/usr/lib/libz.so.1
export PERL5LIB=/mnt/us/usr/lib/perl5/5.12.4:$LD_LIBRARY_PATH:\
/mnt/us/usr/lib/perl5/5.12.4/arm-unknown-linux-gnueabi
if [ -f /mnt/us/.alias ]; then
. /mnt/us/.alias
fi
|
/etc/passwd
Code:
root:x:0:0:root:/home/root:/bin/sh
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:100:sync:/bin:/bin/sync
operator:x:37:37:Operator:/var:/bin/sh
sshd:x:103:99:Operator:/var:/bin/sh
messagebus:x:92:92:messagebus:/bin/false
nobody:x:99:99:nobody:/tmp:/bin/sh
default:x:1000:1000:Default non-root user:/dev/null:/bin/sh
framework:x:1001:150:Framework User:/tmp/framework:/bin/sh
For reference. Cheers.