File: luser

package info (click to toggle)
efingerd 1.6.7-1
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 372 kB
  • sloc: sh: 344; ansic: 303; makefile: 27
file content (17 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

. /etc/efingerd/log 

echo
if [ "$1" = "(null)" ]; then
  echo -n Hello $2,\ 
else 
  echo -n Hello $1\@$2,\ 
fi

if [ "$3" = "root" ]; then
  echo I am sorry, but root does not want to be fingered.
else
  echo "this is our dear user $3:"
  /usr/bin/finger "$3"
fi