14.04 - Different /bin/bash shells for admin and non-admin users? - Ask Ubuntu


quick note: i'm not sure if necessary if need mention i'm running chroot environment inside /home directory

so wasn't sure how google search this. apologize in advance if duplicate.

problem 1:

i'm running ubuntu-server 14.04 , i'm able connect ssh. however, notice prefixes admin user , non admin user different.

nebulous admin account (the account created me during system install).

using username "nebulous". authenticating public key "" agent nebulous@nebulous-linux:~$ 

appmanager non admin account.

using username "appmanager". authenticating public key "" agent -bash-4.3$ 

prefixes compare are:

  • nebulous@nebulous-linux:~$
  • -bash-4.3$

if both users set use /bin/bash:

nebulous:x:1000:1000:nebulous,,,:/home/nebulous:/bin/bash appmanager:x:1002:1001:,,,,:/:/bin/bash 

why prefixes different?

this seems cause problem aliases.

problem 2:

if login nebulous, su appmanager, , execute alias, works properly. however, if login non-admin account , try execute alias, doesnt recognize same alias

admin terminal:

appmanager@nebulous-linux:/home/appmanager$ helloworld hello, world! 

non-admin terminal:

-bash-4.3$ helloworld -bash: helloworld: command not found 

what causes shell not recognize alias?

i fixed both problems.

all that's needed source path/to/user/.bashrc

i proper prefix:

appmanager@nebulous-linux:/$ 

and aliases work.

appmanager@nebulous-linux:/$ helloworld hello, world! 

i apologize misuse of askubuntu q&a site. tip @fabby


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User