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
  • 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

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

621 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