linux user login/logout log for computer restriction
Posted
by Cedric
on Stack Overflow
See other posts from Stack Overflow
or by Cedric
Published on 2010-05-05T16:51:16Z
Indexed on
2010/05/05
16:58 UTC
Read the original article
Hit count: 332
Hi !
I would like to know how to log the login and logout of a user. I know it's possible to use the command "last". But this command is based on a file that has a r/w permission for the user, hence the possibility to change these data. I would like to log these data over two months.
Why would I like to do that ? In fact, I would like to prevent a normal user to use a computer more than an hour a day - except week-ends, and 10 hours in total a week.
Cedric
System used : kubuntu, Programming language : bash script
© Stack Overflow or respective owner