LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Quick question about 'ps' (https://www.linuxquestions.org/questions/linux-security-4/quick-question-about-ps-322175/)

Adrohak 05-10-2005 07:27 PM

Quick question about 'ps'
 
Is there are way to make it so that when a user issues command "ps aux," it is automatically rewritten as "ps ux?" That is, a way to make it so no user can pass the 'a' argument to ps?

reddazz 05-10-2005 07:58 PM

Look into using "aliases".

Intimidator 05-11-2005 02:43 PM

I think the problem isn't solved

Mr.reddazz do u mean aliasing it in /etc/profile

what if the user over alias it

all u have to do is modify the source code and recompile it

reddazz 05-12-2005 07:56 AM

Yeah thats what I meant, but I am not sure what will happen if the user aliases in their .bash_profile.

slacky 05-12-2005 02:10 PM

If you only want users to see their own processes, there are security patches to the kernel that do that - I know www.openwall.com's patch will do that for a 2.4 series kernel.


All times are GMT -5. The time now is 06:27 PM.