The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
setting a global variable in script arunkumar_mca UNIX for Dummies Questions & Answers 3 10-23-2007 08:46 AM
Setting path radhika03 Shell Programming and Scripting 5 01-22-2007 12:11 PM
Setting $PATH for a particular file...???? moxxx68 UNIX for Dummies Questions & Answers 4 10-08-2004 04:23 AM
Setting path for GCC? HOUSCOUS UNIX for Dummies Questions & Answers 2 09-17-2003 12:44 AM
setting global variable for all users champion UNIX for Dummies Questions & Answers 4 08-15-2002 01:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-04-2001
jxh jxh is offline
Registered User
  
 

Join Date: Apr 2001
Posts: 2
Question

I am using Solaris 8 and I want to change the PATH setting for all users. I have edited /etc/profile, but when I log in and check the PATH variable, it hasn't changed.

Am I missing something?
  #2 (permalink)  
Old 04-04-2001
98_1LE 98_1LE is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
It is probably being rewritten in their .profile, .cshrc or .bashrc file. /etc/profile is sourced first, then the $HOME/.profile, then shell specific files.
  #3 (permalink)  
Old 04-04-2001
jxh jxh is offline
Registered User
  
 

Join Date: Apr 2001
Posts: 2
I checked the users .profile and this is exactly what is happening.

Many thanks!
  #4 (permalink)  
Old 07-20-2001
chad chad is offline
Registered User
  
 

Join Date: Jul 2001
Location: Lancaster, PA
Posts: 1
setting PATH for root

i am running solaris 8 and i have a similar problem. i can edit the .cshrc files for different users to change their PATH, but i want to add other directories to the path for root. however, i can't find a .profile or .cshrc in the / directory. i looked in the /etc/profile file, and there is no entry for PATH. how do i add a directory to the path for root? what about changing the shell of the root from /sbin/sh to /usr/bin/csh?

Thanks in advance for the help.

chad
  #5 (permalink)  
Old 07-20-2001
yellowfish yellowfish is offline
Registered User
  
 

Join Date: Jul 2001
Location: California
Posts: 42
if you want to create .cshrc for root, just create
the file /.cshrc and change login shell to csh.




  #6 (permalink)  
Old 07-20-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Quote:
Originally posted by yellowfish
if you want to create .cshrc for root, just create
the file /.cshrc and change login shell to csh.




Be careful when chaning root's shell. /usr may not be available at boot time if it is not part of the root filesystem, which would make your shell unavailable. Many machines will refuse to boot properly in this case. Your root shell should also be statically linked to avoid the need to any libs that might be in /usr
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0