Make sure you're in expert mode when you run this:
Verify your current shell (substitute 'admin' for your user):
cat /etc/passwd |grep admin
admin:x:0:0::/home/admin:/bin/cpshell
Change your shell to bash:admin:x:0:0::/home/admin:/bin/cpshell
chsh -s /bin/bash admin
Changing shell for admin.
Shell changed.
Verify the change has taken place:Changing shell for admin.
Shell changed.
cat /etc/passwd |grep admin
admin:x:0:0::/home/admin:/bin/bash
admin:x:0:0::/home/admin:/bin/bash
Now, when you exit/login again, you'll immediately get dropped into expert mode:
login as: admin
admin@192.168.0.50's password:
Last login: Fri Sep 30 14:28:08 2011 from 192.168.0.10
[Expert@R75-A]#
Keep in mind this does have security implications - it's just nice to have in a lab environment :)admin@192.168.0.50's password:
Last login: Fri Sep 30 14:28:08 2011 from 192.168.0.10
[Expert@R75-A]#
No comments:
Post a Comment