- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Permissions on /etc/profile
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2001 02:50 PM
тАО04-13-2001 02:50 PM
I have a user process that needs to inherit all of the custom environment variables I set in /etc/profile. I would like to have them execute this just like a regular shell script. This seems like the easiet way to accomplish this without maintaining those variables in several locations.
Question, is there any security or other risk in changing these permissions? Did I do the right thing by setting system-wide environment variables (such as ORACLE_SID, ORACLE_HOME, etc) in /etc/profile??
Thanks in advance,
Tim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2001 05:32 PM
тАО04-13-2001 05:32 PM
SolutionI think if a user process simply runs the script
/etc/profile, the process will NOT inherit the
variable assignments from the script. You will
probably need to use the "dot" command:
. /etc/profile
(that's a dot, then a space, and then the script).
If you use the "dot" command, you do not
need the execute permission on the script.
You can just leave it at 444.
Mladen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2001 11:40 PM
тАО04-13-2001 11:40 PM
Re: Permissions on /etc/profile
Mladen is right!
Personally I prefer not to edit /etc/profile too much. I only add settings which are really needed by EVERYONE. Other things like Oracle settings etc. I put in another centralized profile, which is sourced by the users who need it.
Just keep your settings centralized, never in individual scripts, users profiles, etc. : it would be an enormous work if anythings has to be changed.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2001 10:58 AM
тАО04-15-2001 10:58 AM
Re: Permissions on /etc/profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2001 11:39 AM
тАО04-15-2001 11:39 AM
Re: Permissions on /etc/profile
Should consider two questions, what is forbidden or not and what is recommended or not.
From pure technical point ov view you can change permissions on /etc/profile and run it from the inside any other script (using dot, i.e. . /etc/profile). This is not forbidden.
But this is not recommended, as others say too.
/etc/profile, according to man 4 profile,
"... should be set op to do only those things that are desirable for every user on the system or to set reasonable defaults."