Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • Hi all thanks for reply, I got the solution please correct me if i am wrong. I append this lines into /etc/profile file. PGROUP=groups|awk '{print $1}' cat /etc/motd.${PGROUP} before adding this line i create banner file for each user under /etc directory. and file like motd.root and motd.alex and this work for me.
    – user260277
    Commented Dec 18, 2014 at 9:04
  • That should do too. Except as per my answer, this works in an interactive terminal only. It won't work for SFTP and similar. Commented Dec 18, 2014 at 9:20
  • interactive terminal means ?
    – user260277
    Commented Dec 18, 2014 at 9:23
  • It's a terminal that a human interacts with (as opposite to SFTP session, SCP session or non-interactive terminal used for remote execution of some batch task) Commented Dec 18, 2014 at 10:07
  • I have included some tricky details about custom implementation of the banner. Commented Dec 18, 2014 at 13:02