LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2008, 01:44 PM   #1
donlobeto
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Rep: Reputation: 0
Unhappy Any body knows why I'm not be able to switch to c-shell?



Can any body help me here.

basically my default account is in bash and if I try to switch to c-shell using "csh" I'm getting the following line:


/etc/cshrc: Command not found.

so, what am i doing wrong? and how to fix it?


Thanks is advance

-donlobeto
 
Old 04-21-2008, 02:05 PM   #2
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
Sounds like you do not have permission to use the csh shell.
Are you root when you type csh?
 
Old 04-21-2008, 02:13 PM   #3
donlobeto
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DotHQ View Post
Sounds like you do not have permission to use the csh shell.
Are you root when you type csh?
No, I'm not a root. I'm login to my college account and I'm suppose to have access to c-shell since we are learning c-shell scripting.

Is there a way to know for sure if I don't have permissions to use the csh before I send an email to my teacher?

thanks

-donlobeto
 
Old 04-21-2008, 02:22 PM   #4
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Sounds more like your environment doesn't have the necessary config for csh.

As a test, try running "csh -f" - which will load csh without trying to run any resource files. You should get a simple '%' as a prompt & be able use the shell like normal-ish.

If that's the case, then talk to your admin as to why you can't run csh. if that doesn't work, tell us what happened.
 
Old 04-22-2008, 04:15 AM   #5
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
perhaps creating an empty file can fix the problem. as root do:
Code:
: > /etc/cshrc
chmod 0755 /etc/cshrc
 
Old 04-23-2008, 12:38 PM   #6
donlobeto
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by donlobeto View Post

Can any body help me here.

basically my default account is in bash and if I try to switch to c-shell using "csh" I'm getting the following line:


/etc/cshrc: Command not found.

so, what am i doing wrong? and how to fix it?


Thanks is advance

-donlobeto


Thank you all for your responses.
My account is working OK now.
I sent an email to my teacher and he just said that he was doing some changes to the system that may be the cuase.
I don't know what it was but I'm glad I was not the one causing the problem.
Thanks you all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i switch users in a shell script? koobi Programming 8 01-05-2008 02:19 PM
How to switch user in shell scripting.. Parished.D Linux - Software 2 10-31-2006 07:30 AM
Hello Every Body gyaban05 LinuxQuestions.org Member Intro 1 01-24-2006 12:19 AM
How do I switch the desktop shell in 10.2? wellander Slackware 5 10-25-2005 11:27 AM
how to switch form bash to another shell slim27616 SUSE / openSUSE 1 02-06-2005 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration