SLES 7.0 C-Shell login problem

Posted on 2003-03-30
Medium Priority
Last Modified: 2010-04-21

I am working on Suse Linux Enterprise Server 7.0 (for zSeries).
When I'm logging into the system with C-Shell as default shell,
the PATH environment variable contains unrecognized characters.
Therefore the PATH is not recognized and the whole login process
is not finished properly.

If working with BASH, the problem doesnt occur.
If connecting with BASH and then moving to C-SHELL (using Su or Exec),
again - the problm doesnt exists.

Best regards,
Question by:ran_deri
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
LVL 20

Accepted Solution

Gns earned 1000 total points
ID: 8239328
man csh
will show the order startup files are read, as well as the differences between a login c-shell and a regular c-shell.
I don't have SLES 7.0, but chances are great that it is really tcsh you are running. If so, look for the subsection "Startup and shutdown" which tells the process in detail. Roughly one can say there is a systemwide /etc/csh.login and /etc/csh.cshrc, a "per user" ~/.login and ~/.cshrc (and possibly a .tcshrc too), which all gets read (along with some other files in the home directory, if present) in an order specified at build-time (.login befor or after .(t)cshrc) when you login, but only /etc/csh.cshrc and .cshrc get read when su'ing or just executing csh.
The actual name of the systemwide files are also settable at buildtime, so check the man-pages FILES section (relatively close to the end) for the actual filenames.

The problem is probably an error in either the /etc/csh.login or ~/.login file.
If either is a symbolic link to a bourne shell style configuration file (/etc/profile, $HOME/.profile) you'd see all kinds of problems since the syntax of sh and csh differ quite a bit.

This should give you somewhere to look at least:-).

-- Glenn

Expert Comment

ID: 9087572
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 20

Expert Comment

ID: 9091786
My answer is correct.

-- Glenn

Expert Comment

ID: 9294567
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept comments from Gns as answer
Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

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 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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

770 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