Solved

suse 5.2 login problem

Posted on 1998-12-08
2
244 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

813 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

17 Experts available now in Live!

Get 1:1 Help Now