System maintenance 2 questions
Since a few weeks I am playing with debian and now I have 2 questions.
The first one: I want to create weekly a file to all user directories. I know that you have a cronjob to schedule it weekly. In this cronjob I have written the following line: df >> /home/%users/diskspace.txt I've tried this first in the shell, but it won't put the outcome to all other home directories. How can I realize that this file is created in each home directory? Second question is, how can I give all users of member group such as "family" a nice welcomes message? Thanks. Icy |
Hello, I'll begin with your second question. To have a message to all system users by editing /etc/motd. If you are specific that the message must only be sent to members of the family group,you may be have to write your own script that would run when each user logs in and would check if they are a member of the group family before executing to completion.
Ill, give you some heads up on getting the groups to which a user belongs Quote:
|
All times are GMT -5. The time now is 04:05 PM. |