Lowyat.NET Forums

Welcome Guest ( Log In | Register )

 
RSS feedReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> csh on solaris

CONANDOR
post Sep 2 2008, 03:48 PM
Show posts by this member only |Rating BETA (0+, 0-) | Post #1


Regular
**

Group: Junior Member
Posts: 153
Joined: January 2003
From: Kuching - Melaka




how can i pre-set then PATH so that i no need setenv everytime i login.

i know it can be done with edit .login on normal user
but how about root?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
fyire
post Sep 2 2008, 10:54 PM
Show posts by this member only |Rating BETA (0+, 0-) | Post #2


Look at all my stars!!
Group Icon

Group: Staff
Posts: 7,772
Joined: January 2003
From: Somewhere out there




check and see if there's a /etc/cshrc or /etc/csh.cshrc

Those are the global configs for the csh shell
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
tishaban
post Sep 2 2008, 11:33 PM
Show posts by this member only |Rating BETA (0+, 0-) | Post #3


Freak
******

Group: Senior Member
Posts: 1,260
Joined: February 2007




Technically on Solaris root uses /sbin/sh which doesn't read cshrc/login biggrin.gif

However fyire is right in general, it's just that I can't find a global cshrc file on Solaris 10, only /etc/profile....
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
fyire
post Sep 2 2008, 11:51 PM
Show posts by this member only |Rating BETA (0+, 0-) | Post #4


Look at all my stars!!
Group Icon

Group: Staff
Posts: 7,772
Joined: January 2003
From: Somewhere out there




QUOTE(tishaban @ Sep 2 2008, 11:33 PM)
Technically on Solaris root uses /sbin/sh which doesn't read cshrc/login biggrin.gif

However fyire is right in general, it's just that I can't find a global cshrc file on Solaris 10, only /etc/profile....
*



Well, my guess is that he's likely to have changed the default shell of the root account.

that csh config files in /etc may not exist by default, so try creating it and see what happens.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
CONANDOR
post Sep 3 2008, 09:41 AM
Show posts by this member only |Rating BETA (0+, 0-) | Post #5


Regular
**

Group: Junior Member
Posts: 153
Joined: January 2003
From: Kuching - Melaka




QUOTE(tishaban @ Sep 2 2008, 11:33 PM)
Technically on Solaris root uses /sbin/sh which doesn't read cshrc/login biggrin.gif

However fyire is right in general, it's just that I can't find a global cshrc file on Solaris 10, only /etc/profile....
*



em. yeah. i only found /etc/.profile

yeah. i think u correct. the root uses /sbin/sh
but not sure why it show csh when i do echo SHELL

anyway how can i define d path for the default sh?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
tishaban
post Sep 3 2008, 10:27 PM
Show posts by this member only |Rating BETA (1+, 0-) | Post #6


Freak
******

Group: Senior Member
Posts: 1,260
Joined: February 2007




Look in /etc/default/login and /etc/default/su

Both have the PATH variable for the root /sbin/sh shell when you're logging in or su to root.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
cipanzhi
post Sep 11 2008, 02:56 PM
Show posts by this member only |Rating BETA (0+, 0-) | Post #7


Newbie
*

Group: Junior Member
Posts: 12
Joined: September 2008






The other option to change the SHELL in Solaris is using :

$ passwd -e username

It will trigger a prompt, telling you your current shell and asking you to type in the new path for a new shell ex: /bin/sh or /bin/csh
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Bump TopicReply to this topicTopic OptionsStart new topic
 

Lo-Fi Version Time is now: 22nd November 2008 - 11:32 AM
All Rights Reserved 2003-2008 Vijandren Ramadass (~resistance is futile~)