[Discuss] RHEL - modify system path with script in profile.d - only works for root not users

stephen goldman sgoldman at MIT.EDU
Sat Nov 19 14:45:02 EST 2011


Hello All,
        Request assistance on modifying the system path .. on a REHL box.

The change works for root but not for any of the users???


Host OS = 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

Based on this : 

/etc/profile - and link below creating a script in /etc/profile.d


http://serverfault.com/questions/102932/adding-a-directory-to-path-in-centosIt's 




Created script in /etc/profile.d - addusers:   to add the path.. 

host profile.d]# vi addpath.sh 
export PATH=$PATH:/usr/local/sratoolkit.2.1.7-centos_linux64



Permissions of script.

drwxr-xr-x   2 root root      4096 Nov 19 11:45 .
drwxr-xr-x 100 root root     12288 Nov 18 17:49 ..
-rwxr-xr-x   1 root saeijlab    61 Nov 19 11:45 addpath.sh

This works for root but not for other users .. Why

Open to ideas

I am testing as a standard user and it does not work.

Thanks..















Stephen Goldman 
System Administrator
Department of Biology
Massachusetts Institute of Technology
31 Ames Street, 68-316e
Cambridge, Ma. 02139
617-452-2595- sgoldman at mit.edu


More information about the Discuss mailing list