?
Solved

suse 5.2 login problem

Posted on 1998-12-08
2
Medium Priority
?
249 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 200 total points
ID: 1638753
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
ID: 1638754
thanks for the help
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
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.
Suggested Courses
Course of the Month14 days, 7 hours left to enroll

807 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