File: luser

package info (click to toggle)
efingerd 1.6.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 196 kB
  • ctags: 35
  • sloc: sh: 339; ansic: 254; makefile: 61
file content (17 lines) | stat: -rwxr-xr-x 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