Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

motd(5) [v7 man page]

MOTD(5) 						     Linux Programmer's Manual							   MOTD(5)

NAME
motd - message of the day DESCRIPTION
The contents of /etc/motd are displayed by pam_motd(8) after a successful login but just before it executes the login shell. The abbreviation "motd" stands for "message of the day", and this file has been traditionally used for exactly that (it requires much less disk space than mail to all users). On Debian GNU/Linux, dynamic content configured at /etc/pam.d/login is also displayed by pam_exec. FILES
/etc/motd /etc/pam.d/login SEE ALSO
login(1), issue(5), pam_motd(8) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 1992-12-29 MOTD(5)

Check Out this Related Man Page

SECURETTY(5)						     Linux Programmer's Manual						      SECURETTY(5)

NAME
securetty - file which lists terminals from which root can log in DESCRIPTION
The file /etc/securetty contains the names of terminals (one per line, without leading /dev/) which are considered secure for the transmis- sion of certain authentication tokens. It is used by (some versions of) login(1) to restrict the terminals on which root is allowed to login. See login.defs(5) if you use the shadow suite. On PAM enabled systems, it is used for the same purpose by pam_securetty(8) to restrict the terminals on which empty passwords are accepted. FILES
/etc/securetty SEE ALSO
login(1), login.defs(5), pam_securetty(8) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2015-03-29 SECURETTY(5)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Inverse Video

I am trying to discover the sequence of escape characters that I need to pass ksh in order to turn inverse video on and off. I need this information for two reasons: * I want to include inverse video text in some shell scripts * I wish to highlight a section of an /etc/motd file Thanks for... (2 Replies)
Discussion started by: sam_pointer
2 Replies

2. Cybersecurity

Editing motd

Hie. Im having a problem editing the motd ( message of the day ). I tried to edit the file /etc/motd but its end up with nothing. I find out the directory /etc/motd is in rw- r - r i changed it to executable rwxw-rw-r but having same thing no changes in the motd. Anyone having any idea how to... (3 Replies)
Discussion started by: killerserv
3 Replies

3. UNIX for Advanced & Expert Users

MOTD File?

Anyone know how to change the location of the MOTD file from the default /etc/motd? An annoying person with root access has found out how to edit the file and change my MOTDs. Help me. (14 Replies)
Discussion started by: Rex00me
14 Replies

4. UNIX for Advanced & Expert Users

motd for different users

Hi, I was hoping to get some help on this question: I have different groups of users logging into our servers and I would like to set it up so that when they login they could get an update from the motd. How do I set it up so that I can have one group see a different motd than the system... (1 Reply)
Discussion started by: vancouver_joe
1 Replies

5. UNIX for Dummies Questions & Answers

Linux help on X and motd

Hie guys im new to Unix. Need some advise or favour perhaps. Iam running Red hat Linux 7.2 and as soon as i install with GUI and so done, i reboot the system. After i reboot it directly went to the GUI login. I able to login and do my stuffs. My question is how to hold the system not to directly... (4 Replies)
Discussion started by: ###1tomato
4 Replies

6. Shell Programming and Scripting

replacing old motd with new motd

I need to replace the current /etc/motd text file with a new motd across 30+ servers. Which is the best way to do this? Shell script? sed? Does anyone have an example I can use? Thanks in advance. Unix people are the best!!! :) (2 Replies)
Discussion started by: antalexi
2 Replies

7. UNIX for Dummies Questions & Answers

/etc/motd

Hi I do get the message of the day upon logging in to my machine(Solaris 9). I do NOT have a .hushlogin file in my home directory. Any ideas :-) (7 Replies)
Discussion started by: run_time_error
7 Replies

8. UNIX for Dummies Questions & Answers

Motd

Does anyone know how to get the IP Address of the connecting client to apear in the MOTD I am new to linux and I was wondering if this was possible thanks in advance. :D :confused: :D (4 Replies)
Discussion started by: DragonLenage
4 Replies

9. Linux

Motd

In which login startup script is the motd displayed? Red Hat 4AS As I understand it, upon login (bash) it hits /etc/profile ~/.bash_profile ~/.bash_login ~/.profile I went through the scripts and the associated scripts (/etc/profile.d/*.sh) but don't see where it's being displayed... (5 Replies)
Discussion started by: BOFH
5 Replies

10. UNIX for Dummies Questions & Answers

MOTD - Daily single message

Is there any way to display a different but daily MOTD when users login to the system without having to write some phrase or thoughts every day into it? EDIT: Or how can I ŽupdateŽ the content of this file with some strings inside a txt file everyday? Any help will be much appreciated! (4 Replies)
Discussion started by: agasamapetilon
4 Replies

11. Solaris

MOTD Display

Hi all, Wish to check which setting is set to display the MOTD AFTER successful password verification. I am logging in via a 3rd party ssh tool tectia. Eg. Login: password: OS Prompt> Thanks Eugene (5 Replies)
Discussion started by: srage
5 Replies

12. UNIX for Dummies Questions & Answers

shell scripting - gives a message on Fridays and a countdown on other business days.

Hey - I need to write a shell script that gives a message on Fridays and a countdown on other business days. ("Today is Thursday, one day to go to Friday") I don't know if I should be scheduling a job for friday using the crontab command? Basically i'm totally lost. Any help would be greatly... (6 Replies)
Discussion started by: citizencro
6 Replies

13. UNIX for Dummies Questions & Answers

Default motd for different OS

Hello, which is the default motd for the different following different OS versions? RHEL: has no default motd? HP-UX: no motd but cat /etc/copyright in /etc/profile: (c)Copyright 1983-2003 Hewlett-Packard Development Company, L.P. (c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the... (2 Replies)
Discussion started by: asanchez
2 Replies

14. UNIX for Dummies Questions & Answers

Why doesn't motd show up when I su to root?

When I do sudo -i isn't that like creating a root login shell session? Why isn't motd displayed? motd=message of the day. ---------- Post updated at 09:54 AM ---------- Previous update was at 09:25 AM ---------- I think I answered it myself, it is only called for remote login sessions, once... (2 Replies)
Discussion started by: glev2005
2 Replies

15. Red Hat

Rsync - hot to omit MOTD/banners

I'm working on an rsync script and I'd like it to omit the MOTD banners and NOT output them to the file. I tried the --no-motd argument in the command but for some reason the MOTD still continues to appear. Can anyone advise? (10 Replies)
Discussion started by: infrared013
10 Replies