Hoe zorg ik ervoor dat als iemand ps aux op mijn debian server intikt, dat hij toch alleen maar zijn eigen processen kan zien, en niet die van iemand anders?
Verwijderd
moet je volgens mij je kernel patchen...
Openwall --> http://www.openwall.com/
Openwall --> http://www.openwall.com/
This option restricts the permissions on /proc so that non-root users can
see their own processes only, and nothing about active network connections,
unless they're in a special group. This group's id is specified via the
gid= mount option, and is 0 by default. (Note: if you're using identd, you
will need to edit the inetd.conf line to run identd as this special group.)
Also, this disables dmesg(for the users. You might want to use this
on an ISP shell server where privacy is an issue. Note that these extra
restrictions can be trivially bypassed with physical access (without having
to reboot).
code:
1
| ps aux | grep $USER |
Zoiets
edit: sorry, de vraag niet goed gelezen...
À vaincre sans péril, on triomphe sans gloire - Pierre Corneille
je kan een alias aanmaken, maar in principe is het redelijk onmogelijk, men kan altijd /bin/ps aanroepen in dit geval:
alias ps='ps -Txfww'
alias ps='ps -Txfww'
"Een serveradmin, voluit een serveradministrator, is dan weer een slavenbeheerder oftewel een slavendrijver" - Rataplan
Enigste goed oplossing hiervoor is inderdaad je kernel source patchen (en hierna natuurlijk opnieuw compilen). Dit kan onder andere met de Openwall patch voor kernel 2.2.x en grsecurity patch voor kernel 2.4.x