Solved

suse 5.2 login problem

Posted on 1998-12-08
2
242 Views
Last Modified: 2010-04-20
The other day I typed chsh to chage the shell upon login
somewhere along the line I typed clear instead of giving a
alternate shell
now when I login I get:
last login etc...
no mail
cannot execute clear: no such directory or file.

any ideas what file  this is  in.

Thanks
 
0
Comment
Question by:strmtrpr
2 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
Comment Utility
short answer:  /etc/passwd

fix it as follows:
 1) login as root
 2) edit /etc/passwd: find line with your username (first word before first :), in this line edit the last field (after last :), there should be  clear  at the moment, replace it by whatever you like (/bin/sh for example), hint: user other entries as example
0
 

Author Comment

by:strmtrpr
Comment Utility
thanks for the help
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now