[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: pid , uid...
+ > 1. given the pid of a process, is it possible to know its uid and
+ > the effective uid of a person running it ?
geteuid(), getuid() do that in a program. See man 2
+ > 2. can i hide a process from getting displayed in ps ( and also
+ > vanish from /proc )
Want to crack or what? :) The simple answer is - no. There are work
arounds; changing name of the process randomly during run time is one way,
and to add complexity, you can change the pid too. Dont ask me how to do
it. Search the archieves you'll find that.
[Fortune cookie] Signatures are funny.