This is very similar to all the other questions out there but at the same time not.
I am running Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-59-generic x86_64) to be precise.
I successfully setup a new user with:
useradd -m webuser, however, no matter what I do I cannot seem to get most the bash functions like auto complete and history to work.
For example my bashrc file has:
# If not running interactively, don't do anything [ -z "$PS1" ] && return # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoredups:ignorespace # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000
but when I
echo "$HISTFILESIZE" I do not get
null but I do not get a result either:
$ echo "$HISTFILESIZE"
(Unfortunately this site doesn't allow me to actually show you since it tries to be very intelligent).
This goes for all history variables.
No matter what I do I cannot seem to get the basic environment variables to work and, as it seems the
.bashrc to be read.
Ontop of this my set -o is pathetically small:
Current option settings errexit off noglob off ignoreeof off interactive on monitor on noexec off stdin on xtrace off verbose off vi off emacs off noclobber off allexport off notify off nounset off nolog off debug off
and all the question I try don't help, i.e.: https://superuser.com/questions/174306/how-can-i-enable-the-bash-command-history
I am logging in using SSH via PuTTY.
Output of echo $0 straight from the ssh temrinal:
$ echo $0 -sh