How to force sth to run when each user logs in?
For example, when a user login, write the current time to a file is his or her home folder. I think this can be some common login script so that when a new user is created, the command will be written to .bashrc or .profile or something. But how to achieve this? BTW, I am using opensuse. Thanks!