The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-19-2002
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
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  
Old 07-19-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You can put a message in /etc/motd - motd stands for message of the day.
  #3  
Old 07-19-2002
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
Thanks again!

This worked! Again, thank you!
  #4  
Old 09-04-2002
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
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  
Old 09-04-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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  
Old 09-06-2002
DPAI's Avatar
Registered User
 

Join Date: Jul 2001
Posts: 112
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0