- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ps -ef limitation
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
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
11-21-2011 03:16 AM
11-21-2011 03:16 AM
ps -ef limitation
Hello,
The customer wants to restrict “ps –ef “ output.
For security reasons they want each user , while typing “ps -ef” , sees only processes executed by this user and not all processes running on the system.
NB : my e-mail is rabdelmassih@alcs.com.lb
Thanks and Regards
Roger
- Tags:
- PS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2011 03:23 AM
11-21-2011 03:23 AM
Re: ps -ef limitation
I suppose you would create an alias or function for these user that adds "-u $LOGNAME" to the end of the command line.
In general, why do you think this will improve security?
- Tags:
- 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2011 04:12 AM
11-21-2011 04:12 AM
Re: ps -ef limitation
Hello ,
Thank you for your concern.
I tried ps -ef -u $LOGNAME , but the output is still showing all processes.
Regards
Roger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2011 12:48 PM
11-21-2011 12:48 PM
Re: ps -ef limitation
>I tried ps -ef -u $LOGNAME, but the output is still showing all processes.
Then it looks like you need to parse the options and remove the -e.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2011 02:26 PM
11-23-2011 02:26 PM
Re: ps -ef limitation
Since ps is a standard HP-UX program, there are no controls for the options that users can choose. You'll have to write a wrapper script called ps and rename ps to another name (ie, ps.real). NOTE: The script must be written correctly to pass everything transparently to ps.real for all user IDs that are not restricted. There are many, many programs and scripts that require ps to work correctly.
Bill Hassell, sysadmin