File: luser

package info (click to toggle)
efingerd 1.3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 180 kB
  • ctags: 36
  • sloc: sh: 297; ansic: 278; makefile: 62
file content (18 lines) | stat: -rwxr-xr-x 252 bytes parent folder | download
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