/etc/motd in cagefs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • forums
    Member
    Forum Explorer
    • Mar 2021
    • 37

    #1

    /etc/motd in cagefs

    hi, wondering if there is any way to add /etc/motd in the cagefs so users with shell access see the welcome/warning message in motd?

    Thanx!
  • iseletsk
    Senior Member
    • Dec 2017
    • 1199

    #2
    Create your own template, like:
    /etc/cagefs/conf.d/motd.cfg

    [motd]
    comment=Message Of the Day
    paths=/etc/motd

    Then run:
    cagefsctl --update
    or
    cagefsctl --update-etc

    Comment

    • forums
      Member
      Forum Explorer
      • Mar 2021
      • 37

      #3
      Thanx very much Igor!

      Comment

      • forums
        Member
        Forum Explorer
        • Mar 2021
        • 37

        #4
        just a note...in WHM where you enable/disable cage for users i see system usernames listed there like clamav, will be great if you can only list user usernames there and not also system usernames.

        Thanx!

        Comment

        • iseletsk
          Senior Member
          • Dec 2017
          • 1199

          #5
          I thought we excluded all system usernames (you can add excluded names into /etc/cagefs/exclude/systemuserlist)
          We will review it/add more

          Comment

          • forums
            Member
            Forum Explorer
            • Mar 2021
            • 37

            #6
            Thanx Igor, please also add stunnel in the system excludes

            Comment

            Working...