home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cops_104.zip / cops_104 / checkacct / bsd.m4 < prev    next >
Text File  |  1992-03-10  |  1KB  |  37 lines

  1. undefine(eval)dnl()
  2. changequote(%,^)dnl()
  3. dnl()
  4. dnl() At some sites, a group is given to each user, rendering group
  5. dnl()    permissions somewhat moot.  If your site is like this, then you
  6. dnl()    want to tell chkacct to act as if group permissions don't matter.
  7. dnl()   To do this, set smallgroups to be 1
  8. dnl()
  9. define(SmallGroups,%1^)dnl()
  10. define(FindPermRead,
  11.     ifelse(SmallGroups, %0^, %-perm -4 -o -perm -40^, %-perm -4^))dnl()
  12. define(FindPermWrite,
  13.     ifelse(SmallGroups, %0^, %-perm -2 -o -perm -20^, %-perm -2^))dnl()
  14. define(ChmodPermSymbol,
  15.     ifelse(SmallGroups, %0^, %go^, %o^))dnl()
  16. define(FindPermSuid,
  17.     ifelse(SmallGroups, %0^, %-perm -2000 -o -perm -4000^, %-perm -4000^))dnl()
  18. define(ChmodPermSuidSymbol,
  19.     ifelse(SmallGroups, %0^, %ug^, %u^))dnl()
  20. dnl()
  21. dnl()
  22. dnl() Set cshpath() to be the tail end of whatever it takes to pipe standard
  23. dnl() input to the shell.  It will be used in the following way:
  24. dnl()        HOMEDIR=`echo "echo ~${USERID}" | cshpath()`
  25. dnl() On some bsd systems, cshpath() needs to be "/bin/csh -".  
  26. dnl() On some sysV systems, cshpath() needs to be "/bin/csh".  
  27. dnl()
  28. define(perlpath,%/usr/unsup/bin/perl^)dnl()
  29. define(catpath,%/bin/cat^)dnl()
  30. define(cshpath,%/bin/csh -^)dnl()
  31. define(pagerpath,%"/usr/ucb/more"^)dnl()
  32. define(gurudude,%"PUCC General Consultant"^)dnl()
  33. define(installpath,%/usr/local/^)dnl()
  34. define(echownl,%/bin/echo -n "^$1%"^)dnl()
  35. define(lsopt,%g^)dnl()
  36. define(findopts,%-follow^)dnl()
  37.