![]() |
Unslung.ChangeTheUnslungShellUsingDotProfile HistoryHide minor edits - Show changes to markup March 30, 2008, at 07:51 PM
by --
Changed lines 3-4 from:
You might want to see RunAnotherShellForRootSafely? instead. to:
You might want to see HowTo.RunAnotherShellForRootSafely instead. March 30, 2008, at 07:51 PM
by --
Added lines 3-4:
You might want to see RunAnotherShellForRootSafely? instead. December 20, 2004, at 09:38 PM
by --
Changed line 21 from:
An alternative (although dangerous one) is to change your shell in the /etc/password 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. to:
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. November 12, 2004, at 02:44 AM
by --
Changed line 35 from:
@@test -x /opt/bin/bash && exec /opt/bin/bash
to:
test -x /opt/bin/bash && exec /opt/bin/bash
November 12, 2004, at 02:44 AM
by --
Changed lines 31-37 from:
greg lawler to:
greg lawler
@@test -x /opt/bin/bash && exec /opt/bin/bash
kolla September 17, 2004, at 06:09 AM
by --
Added line 31:
greg lawler September 17, 2004, at 06:08 AM
by --
Changed lines 23-30 from:
heath to:
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... September 16, 2004, at 09:09 PM
by --
Changed line 18 from:
to:
September 16, 2004, at 09:09 PM
by --
Changed lines 4-5 from:
to:
Changed lines 8-17 from:
#!/bin/sh-> /opt/bin/sh-> alias l='ls -la'-> alias c='cd ..'# logout
to:
#!/bin/sh
export PATH=$PATH:/my/dir
/opt/bin/sh
alias l='ls -la'
alias c='cd ..'
September 16, 2004, at 09:07 PM
by --
Changed lines 12-15 from:
#!/bin/sh
/opt/bin/sh
alias l='ls -la'
alias c='cd ..'
to:
#!/bin/sh-> /opt/bin/sh-> alias l='ls -la'-> alias c='cd ..'\\
September 16, 2004, at 09:04 PM
by --
Changed lines 1-22 from:
Describe ChangeTheUnslungShellUsingDotProfile here. to:
Change your Shell using .profileRequires:
Steps:
#!/bin/sh
/opt/bin/sh
alias l='ls -la'
alias c='cd ..'
An alternative (although dangerous one) is to change your shell in the /etc/password 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 |