Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

suse 5.2 login problem

Posted on 1998-12-08
2
Medium Priority
?
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

618 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