debian login message

Post Reply
Message
Author
martin

debian login message

#1 Post by martin »

hallo,

nach einem login auf meiner debian installation wird der text ausgegeben:

login as: martin
password:
Last login: Sat Oct 20 11:37:00 2001 on tty3
Linux lisa 2.2.18pre21 #1 Sat Nov 18 18:47:15 EST 2000 i686 unknown

Most of the programs included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each program
are described in the individual files in /usr/doc/*/copyright

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
marin@lisa:~$

--

wo kann man diesen editieren.. bzw. loeschen?

danke

tj

Re: debian login message

#2 Post by tj »

Hi Martin,

OK, anstelle des Fischs bekommst Du von mir eine Anleitung zum Angeln: Mit dem Skript unten kannst du files nach strings durchsuchen, indem du z.B. in /etc

strfind "Most of the programs"

eingibst. Dann erscheint eine Liste von Dateien, die diesen Teil der login-Nachricht enthalten.

Und jetzt noch das Skript 'strfind':

------------ snip -----------------------
#! /bin/bash

command="`basename $0`"
usage="usage: $command [<path>] <expression>"


case $# in
0) echo $usage; exit;;
1) searchpath="."
expression=$1;;
2) searchpath=$1
expression=$2;;
*) echo $usage; exit;;
esac


echo ""
find $searchpath -mount -type f -exec grep "$expression" {} ;<!--no--> \
-exec echo "---------------- found in ----------------" ;<!--no--> \
-print -exec echo "" ;<!--no-->
echo ""
------------ snip -----------------------

Viel Spass damit, tj

Michael

Re: debian login message

#3 Post by Michael »

Warum einfach, wenns auch kompliziert geht <img src="http://www.pl-forum.de/UltraBoard/Images/Wilk.gif" border="0" align="middle">?

grep -r "Suchtext" /etc/*

gewitter
Posts: 1354
Joined: 09. Apr 2001 9:03

Re: debian login message

#4 Post by gewitter »

editiere
/etc/issue
/etc/issue.net
/etc/motd

martin

Re: debian login message

#5 Post by martin »

vielen dank!!

ciao,
martin

Post Reply