deleting the file utmp
will remove the log maintained by the system of the users.
if u want to remove one user then ,deleting and then creatinga new file will remove log of all users
i think to emove log of certaion users firts of all kill allthe processes of the users then edit the utmp file to mark all the instances of the users as dead processes
look into
man getutent
there thay have given the procedure
|