This question is not a duplicate. Please read it before you mark it as such.
Is it possible to assign nicknames or aliases to users on a Linux sever and SSH into the server using the nicknames? I am thinking something along the lines of the aliases for various commands that get added to the
.bashrc or the
.bash_aliases file, e.g.:
alias grep='grep --color=auto'
For example, if there is a requirement (business rule) to set up users on the server with their full name, e.g.,
john_smith instead of just their first name (
john) but we want to nickname
fruitloops and we want John to be able to:
as well as:
If it is possible, where would the mapping between a user and their nickname be set up? Would the user
fruitloops also need to exists on the sever?
This question is about setting up an alias for a user, not a host.