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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changed login script

Status
Not open for further replies.

A5k

Programmer
Jul 29, 2001
54
CA
ok,
I did a very stupid thing. I changed my login script and now the system won't let me back in. (groan) Is there ANY way to change it back to it's original without being root? The system is AIX v4 if it helps.

thanks,
A5k
 
Please explain further. What did you change?
/etc/profile
/.profile
/etc/security/user

something else ?

crowe
 
I used passwd -s which gave me a list of other available shells and then punched in another locally made shell which turned out to be the mistake. The etc/passwd file is changed.

thanks,
A5k
 
locally made shell ?? Like one that you (or someone else) developed, not native to the OS?

crowe
 
yeah,
the account is through a university where there is a popular comp science program. As far as I know it was a shell developed by a third year.

thanks,
a5k
 
boot to single user from a tape or cd, mount the original root file system as something else, then use vi to set the shell field in /etc/passwd to something a bit better :) Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
I think you can change your files (these on $HOME) using FTP. Try it...
I hope it works...
Unix was made by and for smart people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top