Change your Shell using .profile
You might want to see HowTo.RunAnotherShellForRootSafely instead.
- Unslung firmware and drive
- newer version of busybox
/root directory (probably aready did this if you use dropbear to login)
/root/.profile (I actally created it as .login with a symlink to .profile)
chmod 755 /root/.profile
- add commands to .profile to be executed on login
alias l='ls -la'
alias c='cd ..'
- login and verify that you are now in the new shell(double-shelled, but it works)
An alternative (although dangerous one) is to change your shell in the /etc/passwd file. This may require the creation of an /etc/shells file that lists the new shell, but I haven't tested this to know for sure.
- if you create an /etc/shells and insert the following line:
you will be able to edit your shell in /etc/passwd as follows:
and still be able to log in...
- Another way to do this and also avoid double-shelling is to use exec, I simple have this in my .profile
test -x /opt/bin/bash && exec /opt/bin/bash