how do I change the ftp login message

how do I change the ftp login message

Post by Kirk R. Wyther » Tue, 13 Jun 2000 04:00:00



I was wondering how I change the ftp message that gets written from
/etc/rc.d/rc.local? See below... I commented out the two echo's that
seemed to put the infor that I didn't want to appear in the message, but
I'd like to add something like "Use this system responsibly, all
acitivity is logged". Where can I put that?

Thanks,

Kirk

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

if [ -f /etc/redhat-release ]; then
    R=$(cat /etc/redhat-release)
    arch=$(uname -m)
    a="a"
    case "_$arch" in
     _a*) a="an";;
     _i*) a="an";;
    esac

    NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat`
    if [ "$NUMPROC" -gt "1" ]; then
        SMP="$NUMPROC-processor "
        if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
            a="an"
 else
     a="a"
        fi
    fi

    # This will overwrite /etc/issue at every boot.  So, make any
changes you
    # want to make to /etc/issue here or you will lose them when you
reboot.
    echo "" > /etc/issue
##    echo "$R" >> /etc/issue
##    echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue

    cp -f /etc/issue /etc/issue.net
    echo >> /etc/issue
fi

--
Kirk R. Wythers                                  University of Minnesota

Tel: 612.625.22611530                            Cleveland Ave. N.
Fax: 612 625.5212                                Saint Paul,  MN 55108

 
 
 

how do I change the ftp login message

Post by Luke Voge » Fri, 30 Jun 2000 04:00:00



> I was wondering how I change the ftp message that gets written from
> /etc/rc.d/rc.local? See below... I commented out the two echo's that
> seemed to put the infor that I didn't want to appear in the message, but
> I'd like to add something like "Use this system responsibly, all
> acitivity is logged". Where can I put that?

> Thanks,

> Kirk

> #!/bin/sh
> #
> # This script will be executed *after* all the other init scripts.
> # You can put your own initialization stuff in here if you don't
> # want to do the full Sys V style init stuff.

> if [ -f /etc/redhat-release ]; then
>     R=$(cat /etc/redhat-release)
>     arch=$(uname -m)
>     a="a"
>     case "_$arch" in
>      _a*) a="an";;
>      _i*) a="an";;
>     esac

>     NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat`
>     if [ "$NUMPROC" -gt "1" ]; then
>         SMP="$NUMPROC-processor "
>         if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
>             a="an"
>  else
>      a="a"
>         fi
>     fi

>     # This will overwrite /etc/issue at every boot.  So, make any
> changes you
>     # want to make to /etc/issue here or you will lose them when you
> reboot.
>     echo "" > /etc/issue
> ##    echo "$R" >> /etc/issue
> ##    echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue

>     cp -f /etc/issue /etc/issue.net
>     echo >> /etc/issue
> fi

> --
> Kirk R. Wythers                                  University of Minnesota

> Tel: 612.625.22611530                            Cleveland Ave. N.
> Fax: 612 625.5212                                Saint Paul,  MN 55108

You can edit the file "/etc/redhat-release"

From a legal point of view, you need to warn people that your system is
for authorised clients only!
A cracker got off once because the system owner put a "Welcome" message
on his system!!!
--
Regards
Luke
PLEASE NOTE: Spamgard (tm) installed.
----
When the only tool you own is a hammer,
all problems begin to resemble nails.
----
http://www.bell-bird.com.au

----

 
 
 

how do I change the ftp login message

Post by heideg.. » Sat, 01 Jul 2000 04:00:00



> You can edit the file "/etc/redhat-release"

If it's ftp he's talking about, then edit, for instance:

/home/ftp/pub/.message

--
Bob Bernstein

 
 
 

how do I change the ftp login message

Post by Luke Voge » Sat, 08 Jul 2000 04:00:00




> > You can edit the file "/etc/redhat-release"

> If it's ftp he's talking about, then edit, for instance:

> /home/ftp/pub/.message

> --
> Bob Bernstein

I stand corrected.
--
Regards
Luke
PLEASE NOTE: Spamgard (tm) installed.
----
When the only tool you own is a hammer,
all problems begin to resemble nails.
----
http://www.bell-bird.com.au

----