Operating System - Linux
1831959 Members
3394 Online
110034 Solutions
New Discussion

Problem with csh in RedHat Linux 2.1 AS

 
Aaron Su
New Member

Problem with csh in RedHat Linux 2.1 AS

Dear Experts,

I create a user and use c shell (/bin/csh in /etc/passwd), when l login it says:

root: Command not found.
root: Undefined variable.

Please tell me how to fix it. Thanks
3 REPLIES 3
Mark Grant
Honored Contributor

Re: Problem with csh in RedHat Linux 2.1 AS

I'm not sure about this but it could be a problem with your .csh.login or one of the startup files. It may also be boune/korn shell syntax in a startuo file. Are you logging in as root? If not, then it might be that the entry in /etc/passwd isn't correct and it's taking a UID of 0.
Never preceed any demonstration with anything more predictive than "watch this"
Paul Cross_1
Respected Contributor

Re: Problem with csh in RedHat Linux 2.1 AS

This is likely something incorrect in the .login or .cshrc. edit these files and comment everything to verify if you still get these errors.
Aaron Su
New Member

Re: Problem with csh in RedHat Linux 2.1 AS

After checking csh scripts in /etc/profile.d,
some scripts are incorrect in syntax.
Thanks for your helps.