Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hiding other users stuff from w/who/ps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
remcohn
n00b
n00b


Joined: 29 Dec 2004
Posts: 25

PostPosted: Tue Feb 21, 2006 7:11 pm    Post subject: hiding other users stuff from w/who/ps Reply with quote

is it possible to make w/who/ps/others only show the information of that users? so users cant see eachothers information?
i have seen some things like selinux, hardened use flag and grsecurity, but what is the most eazy way for it?

thanks,
remco
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Tue Feb 21, 2006 7:12 pm    Post subject: Reply with quote

SELinux is the only possibility to completely restrict this.
Back to top
View user's profile Send private message
remcohn
n00b
n00b


Joined: 29 Dec 2004
Posts: 25

PostPosted: Tue Feb 21, 2006 7:13 pm    Post subject: Reply with quote

ive read thrue the first couple of pages of the SElinux documentation there on the gentoo site, but it looks rather complicated :-/

do i need to enable grsecurity in the hardened kernel to be able to hide that user info?
Back to top
View user's profile Send private message
TJNII
l33t
l33t


Joined: 09 Nov 2003
Posts: 648
Location: for(;;);

PostPosted: Tue Feb 21, 2006 8:02 pm    Post subject: Reply with quote

IMHO grsecurity. Painless set-up for me.
Back to top
View user's profile Send private message
remcohn
n00b
n00b


Joined: 29 Dec 2004
Posts: 25

PostPosted: Tue Feb 21, 2006 8:16 pm    Post subject: Reply with quote

that looks eazyer :) thanks!
remco
Back to top
View user's profile Send private message
MrUlterior
Guru
Guru


Joined: 22 Mar 2005
Posts: 511
Location: Switzerland

PostPosted: Wed Feb 22, 2006 11:06 am    Post subject: Reply with quote

If those are your only requirements, grsecurity/selinux seems overkill. Why not just ensure that the user's group has no execute on /bin/ps, /bin/who /usr/bin/w ? Alternatively just chroot them without those executables.
_________________

Misanthropy 2.0 - enough hate to go around
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Feb 22, 2006 11:09 am    Post subject: Reply with quote

MrUlterior wrote:
If those are your only requirements, grsecurity/selinux seems overkill. Why not just ensure that the user's group has no execute on /bin/ps, /bin/who /usr/bin/w ? Alternatively just chroot them without those executables.


What's to stop them from finding that out by trolling through /proc?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
MrUlterior
Guru
Guru


Joined: 22 Mar 2005
Posts: 511
Location: Switzerland

PostPosted: Wed Feb 22, 2006 11:12 am    Post subject: Reply with quote

UberLord wrote:
MrUlterior wrote:
If those are your only requirements, grsecurity/selinux seems overkill. Why not just ensure that the user's group has no execute on /bin/ps, /bin/who /usr/bin/w ? Alternatively just chroot them without those executables.


What's to stop them from finding that out by trolling through /proc?


Nothing at all, and nothing prevents them building top, ps, w or who in their home dir assuming a compiler is available. But if all the OP is after is a little obscurity, that provides it.
_________________

Misanthropy 2.0 - enough hate to go around
Back to top
View user's profile Send private message
remcohn
n00b
n00b


Joined: 29 Dec 2004
Posts: 25

PostPosted: Wed Feb 22, 2006 11:15 am    Post subject: Reply with quote

i already got grsecurity running, that was only recompiling a hardened-sources kernel with one or 2 extra options enabled. was done in 15 minutes.

remco
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum