LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-10-2005, 07:27 PM   #1
Adrohak
Member
 
Registered: Jun 2004
Location: Florida
Distribution: Gentoo
Posts: 148

Rep: Reputation: 15
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?
 
Old 05-10-2005, 07:58 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Look into using "aliases".
 
Old 05-11-2005, 02:43 PM   #3
Intimidator
Member
 
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15
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
 
Old 05-12-2005, 07:56 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Yeah thats what I meant, but I am not sure what will happen if the user aliases in their .bash_profile.
 
Old 05-12-2005, 02:10 PM   #5
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question Concerning ISO's and one quick question. evrae Linux - Software 2 06-21-2004 03:53 AM
quick question about C Hockeyfan Programming 5 05-28-2004 07:39 PM
Seeing all processes with 'ps' pfunk Linux - General 6 03-24-2004 12:34 PM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
'ps' Blues Odd_Bloke Linux - Newbie 3 08-30-2003 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration