Friday, 30 September 2011

SPLAT: How to automatically enter "Expert Mode" when logging in

I suppose it's pretty fitting that I include this.

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

Change your shell to bash:
chsh -s /bin/bash admin
Changing shell for admin.
Shell changed.

Verify the change has taken place:
cat /etc/passwd |grep admin

Now, when you exit/login again, you'll immediately get dropped into expert mode:

login as: admin
admin@'s password:
Last login: Fri Sep 30 14:28:08 2011 from

Keep in mind this does have security implications - it's just nice to have in a lab environment :)

No comments:

Post a Comment