![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| users login | lo-lp-kl | Shell Programming and Scripting | 3 | 05-23-2008 09:27 AM |
| Users with login privileges | sprellari | Linux | 2 | 08-23-2006 02:22 AM |
| ??? Log file users login and logout..??? | chanfle | UNIX for Dummies Questions & Answers | 1 | 03-25-2006 03:12 AM |
| Change users login name | spacewalker | AIX | 9 | 03-20-2006 08:09 AM |
| NIS users cann't login on AIX and HP | mod | UNIX for Advanced & Expert Users | 3 | 08-22-2001 08:25 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sysadmin LOGIN msgs for all users
Is there a way, as sysadmin, to put out system msgs, ie scheduled downtime, backup info, etc, whenever users log in?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You can put a message in /etc/motd - motd stands for message of the day.
|
|
#3
|
|||
|
|||
|
Thanks again!
This worked! Again, thank you!
|
|
#4
|
|||
|
|||
|
commands within the motd file
Back to this again, is there a way to echo back information in the MOTD file for users? ie, i want to echo back to them that a certain disk is X% full today, df -k | grep /export/home is the command line, gives more information than i need, but how do I use it within the motd file since that is not a script file?
Thanks, |
|
#5
|
||||
|
||||
|
I don't believe you can put a script into the /etc/motd but you could have a cron job running updating MOTD every minute, hour, ....
Otherwise, you can add something to the 'system' login script to show another message Check out the man page on login - it will give you the steps done for each login - you will find that it runs either /etc/profile or /etc/.login (it matters which shell is being used). You could possibly run something from there. |
|
#6
|
||||
|
||||
|
news command .. ( can put in the shell startup script )
Or calendar
__________________
I haven't lost my mind.... Its backed up on tape somewhere |
||||
| Google The UNIX and Linux Forums |