- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Modifying root's .profile - side effects
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
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
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
05-13-2008 06:02 AM
05-13-2008 06:02 AM
The following lines have been added to root's .profile
. /usr/local/bin/lawprod.env
export TERM=univwin
export PATH=$PATH:/usr/sbin
. cv LSF9
These have effected
1. Terminal settings
- vi and other terminal dependent utilities either fail (e.g. scrolling past the bottom of the file only results in last line writing over last line) rather than scrolling
- "sam", "swinstall", etc report bad terminal setting, but ask if proper settings should be created. They are still break :-(.
2. $PATH variable sequence
- application-specific elements preceding the usual "standard" elements
Unmodified:
/usr/sbin:/usr/bin:/usr/ccs/bin:{...}
versus
Modified:
-/LSF9/gen/cgi-bin:/LSF9/gen/bin: {...}
then n elments later
/usr/sbin:/usr/bin:/usr/ccs/bin:{...} with spaces and tabs also
Therefore, a command that executed would execute a same-named script/program in a directory before the system standard directory/command. (I know you know that, but needed to put that in to document effects for others)
A request to remove said lines was rejected, and my offer to create aliases in root to execute these commands as needed was likewise rejected. Also rejected was a test for interactivity, and queries to execute said aliases.
My managers have asked me to verfiy that modifying root's .profile in this manner is/is not a good practice.
A search on ".profile" and "modifying root's .profile" have only found a thread on operator .profile that suggest that this is not a valid practice.
Plans to implement powerbroker are in the works, but this is effecting things now.
Thank-you for any helpful comments. ,,, Joe S.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 06:11 AM
05-13-2008 06:11 AM
Solution> vi and other terminal dependent utilities either fail ...
Seems like your system is badly crippled.
> Therefore, a command that executed would execute a same-named script/program in a directory before the system standard directory/command. (I know you know that, but needed to put that in to document effects for others)
You have set yourself up for a hugh security breach, since no doubt, the non-system directories are not under your control.
> A request to remove said lines was rejected, and my offer to create aliases in root to execute these commands as needed was likewise rejected. Also rejected was a test for interactivity, and queries to execute said aliases.
Who's the professional administrator here? Obviously you are cognizant of good practices and your managers are not.
> My managers have asked me to verfiy that modifying root's .profile in this manner is/is not a good practice.
Ask them for what they pay you.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 06:14 AM
05-13-2008 06:14 AM
Re: Modifying root's .profile - side effects
I should hasten to add that 'root' should be _reserved_ for pure server administration, _not_ as an application-level account!
Leave root's '.profile' alone. Provide a standalone script that can be sourced (read) or executed on an ad hoc basis if/only_when necessary.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 06:23 AM
05-13-2008 06:23 AM
Re: Modifying root's .profile - side effects
Understood completely. I will "edit for readability and career opportunities" your comments ;-).
Any corroborating statements are welcome with points awarded for pungency and wit. Outright flames are discouraged however. ,,, Joe S.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 07:59 AM
05-13-2008 07:59 AM
Re: Modifying root's .profile - side effects
b) application should never run as "root" so they shouldn't be touching this
c) auditors are gonna have a field day if they find this. Think Sarbanes-Oxley... Payment Card Industry stds if applicable.
d) with those terminal settings, you'll have issues with the system utilities...which is gonna be real helpful when things really do wrong.
if such changes were made here, the person making them would be reprimanded...and maybe searching for other employment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 08:07 AM
05-13-2008 08:07 AM
Re: Modifying root's .profile - side effects
I will close the thread.
Thank-you both for validating my understanding of root's "sanctity". I hope to impress upon those who need to understand this message the responses you have written.
As a newbie to the HP-UX side of ITRC (and still a Tru64 lurker/questioner) I am impressed. ,,, Joe S.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 08:34 AM
05-13-2008 08:34 AM
Re: Modifying root's .profile - side effects
I'm sure that it's just an oversight on your part that James' carefully constructed and well thought out comments received no points, since you did remember to reward Old School. It would be nice if you could remedy that.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 08:43 AM
05-13-2008 08:43 AM
Re: Modifying root's .profile - side effects
I'll offer these well-considered answers to comments I've made outside this forum to those concerned.
Thanks again. ,,, Joe S.