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 (18 lines) | stat: -rw-r--r-- 265 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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 root does not want to be fingered
else
  echo this is our dear user "$3":
  /usr/bin/finger "$3"
fi