![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" | iBot | UNIX and Linux RSS News | 0 | 01-04-2008 03:00 PM |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 01:52 AM |
| AWK -> getting "global" vars | petoSVK | Shell Programming and Scripting | 9 | 05-28-2006 08:56 AM |
| No utpmx entry: you must exec "login" from lowest level "shell" | peterpan | UNIX for Dummies Questions & Answers | 0 | 01-18-2006 04:15 AM |
| "ap" command not dumping user profiles | rm -r * | UNIX for Dummies Questions & Answers | 0 | 08-31-2005 11:44 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
"Global" profiles?
Hi, for all of the users on our boxes, we have a .profile in each home directory. That's fine. But I have some PATH statements that I want to apply for ALL users once they log in. And I'm hoping not to have to edit all user's .profile files in each dir on each box.
Is there a global or team profile that I can use for this purpose? Thanks! Aaron |
|
||||
|
Basically, we're installing some new software and we want the path to those new scripts, etc, to be in everyone's profile. But....everyone also has their own .profile, so it sounds like if I set them in /etc/.profile, they'll just be overwritten.
Someone mentioned something about a .profile_team that could be used, but I can't find anything about it. |
|
|||||
|
There is a provision in ksh that allows you to set readonly variables. You can use the command typeset with the '-r' option to do so. I do not know if this can be used in this case, I am just providing you with an option that you could try out.
Also, the file is not /etc/.profile, it is /etc/profile. |
|
|||||
|
Quote:
PATH=$PATH:/some/other/directory and that is a good thing. |
|
||||
|
Just in case your OS is AIX: there is a file /etc/environment, where generally set environment variables are stored in the form "variable=value". It is read prior to /etc/profile.
bakunin |
| Sponsored Links | ||
|
|