- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root's PATH
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
04-14-2003 02:29 AM
04-14-2003 02:29 AM
We have just be externally audited and one of teh recommendations is that we reduce root's path to just /usr/sbin:/sbin:/usr/bin to avoid the risk of trojans etc. I am a bit twitchy about doing this, ,has anyone got a recommendation for a minimum root path that still allows some flexibility for running most day to day commands without entering teh full path.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 02:35 AM
04-14-2003 02:35 AM
Re: root's PATH
The auditor's recommendation would be fine if you have no need to access other installed applications. However, if you have other applications (like Omniback, or your DB, for example), you may want to include those in your path. It really depends on how (and for what) you use root access.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 02:38 AM
04-14-2003 02:38 AM
Solution/usr/bin:/usr/ccs/bin:/usr/contrib/bin
without strenuous testing to see the implications.
Ive been through many many security audits over the year - one just last week by AOL/Time Warners top security people, and they never recommended changing roots default path - which is good enough for me. I think its unnecessary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 02:39 AM
04-14-2003 02:39 AM
Re: root's PATH
This isn't bad. Consider that the default environment supplied by 'cron' for its jobs is '/usr/bin:/usr/sbin:', so the above covers the standard OS commands nicely.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 03:00 AM
04-14-2003 03:00 AM
Re: root's PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 03:59 AM
04-14-2003 03:59 AM
Re: root's PATH
You can break certain applications and scripts by being that tight. Remember in cron scripts you generally have to set the path or use full path names of commands.
Do all of your sysadmin scripts do one or the other? If not, you might be buying a little trouble.
Still your test approach is top notch. Make sure you notify your auditors and problems of any problems the recommendation causes.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 04:35 AM
04-14-2003 04:35 AM
Re: root's PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 07:23 AM
04-14-2003 07:23 AM
Re: root's PATH
.profile for batches have a
.my_settings file with the appropriate paths. have it sourced on non-interactive
processes.
you can source it from the command line yourself
# . /root/.my_settings
This brings you into full compliance and lets you do your job. whith a minumum of
grief