Hi,
I was using /bin/tcsh for both my user and root user and want to switch to /bin/sh but I am unable to make /root/.profile work for root user when I switch to root through security/sudo. /home/$USER/.profile works for the user. Thanks in advance.
Root shell is set to /bin/sh. This is /root/.profile.
I was using /bin/tcsh for both my user and root user and want to switch to /bin/sh but I am unable to make /root/.profile work for root user when I switch to root through security/sudo. /home/$USER/.profile works for the user. Thanks in advance.
Code:
yusuf@hale:~ $ echo $EDITOR
vim
yusuf@hale:~ $ sudo su
Password:
Take a stress pill and think things over.
Password:
You type like i drive.
Password:
root@hale:/home/yusuf # echo $EDITOR
Root shell is set to /bin/sh. This is /root/.profile.
Code:
#
# .profile - Bourne Shell startup script for login shells
#
# see also sh(1), environ(7).
#
# These are normally set through /etc/login.conf. You may override them here
# if wanted.
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/.local/bin; export PATH
# Setting TERM is normally done through /etc/ttys. Do only override
# if you're sure that you'll never log in via telnet or xterm or a
# serial line.
# TERM=xterm; export TERM
HOME=/root
EDITOR=vim; export EDITOR
PAGER=vimpager; export PAGER
LSCOLORS=exfxcxdxbxegedabagacad; export LSCOLORS
CLICOLOR=1; export CLICOLOR
BUNDLE_PATH="/home/yusuf/.bundle"; export BUNDLE_PATH
GOPATH="/home/yusuf/.go"; export GOPATH
LANG="en_US.UTF-8"; export LANG
LC_ALL="en_US.UTF-8"; export LC_ALL
BLOCKSIZE="G"; export BLOCKSIZE
# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV