- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: restrict ps -f
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
10-09-2002 05:18 AM
10-09-2002 05:18 AM
restrict ps -f
Is there a way to restrict users to execute ps with -f option?
If user knows the ps -f command then UNIX95 is not an option here.
Any other ideas..?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 05:21 AM
10-09-2002 05:21 AM
Re: restrict ps -f
Why?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 05:22 AM
10-09-2002 05:22 AM
Re: restrict ps -f
You could "alias" it ... take a look at "man alias". Lot's of options there ...
Hope this helps,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 05:33 AM
10-09-2002 05:33 AM
Re: restrict ps -f
user can change his .profile file and alias is not going to work here, users are smart , they can run unalias and they know how to make use of ps -ef command.
Changing permission of ps also not going to work because they need to know pid , ppid and other information for the debug. I want to restrict just the command line (format)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 05:37 AM
10-09-2002 05:37 AM
Re: restrict ps -f
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 05:39 AM
10-09-2002 05:39 AM
Re: restrict ps -f
Replace /usr/bin/ps with a script of the same name that will check the user id and then restrict options accordingly before invoking the real ps command which you will have hidden away where they can't find it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 05:54 AM
10-09-2002 05:54 AM
Re: restrict ps -f
Actually there is no way to do this restriction when talking about smart users.
ps(1) uses the pstat() syscall and this syscall is nearly unrestricted. One could write his own ps or, even more simple, bring in an own copy of a ps executable.
To restrict "not so smart" users I would replace ps by a shell script handling the access... but be careful not to break non-root application that need ps!
Regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 05:55 AM
10-09-2002 05:55 AM
Re: restrict ps -f
There are some sql and other legacy scripts passes username and password in pure ascii character, and when a user runs ps -f command they can actually see the passwords
This is the reason I want to restrict the -f option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 06:24 AM
10-09-2002 06:24 AM
Re: restrict ps -f
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 06:25 AM
10-09-2002 06:25 AM
Re: restrict ps -f
Just kidding -
;^)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 06:43 AM
10-09-2002 06:43 AM
Re: restrict ps -f
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 07:30 AM
10-09-2002 07:30 AM
Re: restrict ps -f
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 05:19 PM
10-09-2002 05:19 PM
Re: restrict ps -f
There is NO valid reason to have USERS in a SHELL. PERIOD. EXCLAMATION POINT(S).
If you want to keep users from seeing passwords because some LAME process requires passwords to be passed to it on the command line, then FIX the application. FIXING the PROBLEM is the cure to the disease.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 08:25 AM
10-10-2002 08:25 AM
Re: restrict ps -f
I understand that you have lots of scripts, but they truly need to be changed. Your system is very exposed. You have to much risk for intrusion. The statement of "having to many scripts" would not go far with Management trying to asses blame.
I haven't looked at the latest sudo program. But I have a modified version that allows "special" users to execute certain programs using various service ID's without a password. IE Oracle, Informix, etc.. This has method works very well me.
I admit that I do have a few Oracle scripts that uses a scott/tiger password that can be ps'd, But scott only has read authority for certain tables, of which We don't care if anyone sees and scott Does not have a unix login.
Good luck
Ror