linux user login/logout log for computer restriction
- by Cedric
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