![]() |
Change your Shell using .profileYou might want to see HowTo.RunAnotherShellForRootSafely instead. Requires:
Steps:
#!/bin/sh
export PATH=$PATH:/my/dir
/opt/bin/sh
alias l='ls -la'
alias c='cd ..'
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. heath
/opt/bin/sh you will be able to edit your shell in /etc/passwd as follows: root:3Na3KhotdogAM:0:0:root:/root:/opt/bin/sh and still be able to log in... greg lawler
test -x /opt/bin/bash && exec /opt/bin/bash
kolla |