Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TSH Shell to Korn Shell 1

Status
Not open for further replies.

rfkhan123

Technical User
May 6, 2007
3
US
Hi,
i got struck into tsh# shell, can anyone tell me how can i get back to korn shell. i tried exit, logout,shell, su commands but in that the window is getting closed and when i am opening the terminal, it showing me the same thing tsh#
i tried chsh command but that's showing that Command must be trusted to run in the trusted shell

thanks
 
hi khalidaa,

i think you didn't read my question properly
 
Well, I think you didn't state your problem properly... ;-)

Which user id?
How did you get stuck?
What did you do?

Khalidaa gave you a hint: the user's login shell is configured in /etc/passwd. Find a way (ask your system admin?) to change the login shell back to /usr/bin/ksh and you should be fine.



HTH,

p5wizard
 
Thanks p5wizard for the clarification :)

I'm sorry rfkhan123 If I couldn't give you the answer you expect. Could you please explain your problem more so i can be of a help?

Like when did that happen? When was your last time to have ksh with no problem? and most important are you using root account?

Regards,
Khalid
 
Thanks khalid and p5wizard for taking interest in my problem.

actually, i am practising unix commands on IBM AIX RS/6000 system. while working i pressed ctrl+x ctrl+r key and shutdown the system then when i restarted the system with the root account, it took me into tsh# shell. and from here tsh# shell it is not getting back to korn shell or any other shell. tsh shell is limited and when i was searching on google i found that it allows only 3 commands su, command, shell . i tried all the 3 but they are closing the terminal and when i am restarting the terminal, it's showing me again the same tsh# shell.

please let me know if you understand my question clearly.


Thanks
 
Ok there should be an easy way out of this!

But if you say that you are using root! then i suggest you boot into maintenance mode using AIX 5.2 CDs and access rootvg with mounting the filesystem and then try to change the root shell using chuser!

There must be an easier way than this but that's what i can think of for now! i will look into this problem tomorrow when i got access to an AIX box!

Regards,
Khalid
 
Try this command from within tsh to reset root's shell to ksh:

Code:
chuser -a shell=/usr/bin/ksh root

The three commands you are referring to are normally used to end tsh and get back to ksh or whatever shell you had before. Other commands (as long as they are in the TCB - Trusted Computing Base - a.o. chuser) should work from within tsh also.

If it doesn't work, then you may need to boot in maintenance mode and proceed as Khalid explained.


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top