File: luser

package info (click to toggle)
efingerd 1.6.2.5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 276 kB
  • ctags: 35
  • sloc: sh: 344; ansic: 254; makefile: 62
file content (18 lines) | stat: -rwxr-xr-x 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