Wednesday, 7 November 2012

Solaris - adding a Legal Warning message

Creating a Legal Warning message:

1. Create the file with appropriate text.


# vi /etc/issue

###########################################################
#                                                                                                                  #
#    Use of this computer system (including email and internet access)             #
#    is monitored and recorded. Unauthorised or improper use may result in    #
#    disciplinary action, which could lead to criminal prosecution.                     #
#                                                                                                                 #
##########################################################

2. Edit the sshd_config file.


# vi /etc/ssh/sshd_config


Remove the comment from the line:


# Banner to be printed before authentication starts
# Banner /etc/issue





3. Restart the ssh service.


# svcadm restart /network/ssh

4. Log in to test

No comments:

Post a Comment