change shell for jail-broken iphone/ipad

One can ssh into his iphone/ipad by ssh once jailbroked and installed openssh in cydia. But the shell is /bin/sh by default.

Today I tried to change the shell to /bin/bash by modifying /etc/passwd, but then I found this didn’t help.

I got nothing useful after a bit of googling.

Finally  by analysis strings in pam_unix.so I found /etc/master.passwd in it. So this is the answer: modifying /etc/master.passwd changes the shell.

Enjoy bash on ios!

 

此条目发表在ios分类目录。将固定链接加入收藏夹。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

*