home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume26 / op / part01 / op.access < prev    next >
Text File  |  1992-12-26  |  2KB  |  61 lines

  1. # first, define the site defaults we want to use here
  2. # we would like the people in 'operator' group to be able to execute
  3. # almost everything, so it iseasier to put it here than on every line...
  4. # set up default envariables
  5. #
  6. DEFAULT groups=operator $USER $TERM $PATH=/usr/ucb:/usr/bin:/bin
  7. #
  8. # find out who's filled up the disk; anyone may do this
  9. #
  10. full    /usr/etc/quot $1; users=.*
  11. #
  12. # filesystem backups
  13. #
  14. daily    /etc/dump 5Gun $1; $1=/,/usr[0-9]*,/project
  15. weekly    /etc/dump 0Gun $1; $1=/,/usr[0-9]*,/project
  16. #
  17. # tape handling commands
  18. # must include 'operator' if we want them to be allowed as well
  19. #
  20. tape    /etc/tpc $1 $2; groups=tapeopers,operator users=boss
  21.     $1=enable,disable,stop,restart $2=all,unit[01]
  22. #
  23. mounted    /etc/tpc mounted unit$1 $2; $1=[0-3]
  24. #
  25. # taking the system down
  26. # $1 shows a good user of regular expression;
  27. # $2 can be anything, but is required; no instant shutdowns
  28. #
  29. shutdown    /etc/shutdown -h $1 $2; $1=+[1-9][0-9]*,[0-9]*:[0-9]*
  30. reboot        /etc/shutdown -r $1 $2; $1=+[1-9][0-9]*,[0-9]*:[0-9]*
  31. #
  32. # start up disco daemon
  33. disco    /etc/opbin/start_disco ; uid=disco gid=proj dir=/scratch
  34.         umask=027 groups=geo,disco users=snoopy,linus
  35.         $USER=disco $SHELL=/bin/shell
  36. #
  37. # let certain people mount and unmount the removable drive
  38. #
  39. rdsmount    /etc/mount $1 $2; groups=operator,swdev,disco
  40.             users=bob,steve $1=/dev/dd0[a-z] $2=/.*
  41. rdsumount    /etc/umount $1 ; groups=operator,swdev,disco
  42.             users=bob,steve $1=/dev/dd0[a-z]
  43. #
  44. # allow operators to give files away; notice that they
  45. # must give at least two s, but may give more
  46. #
  47. chown    /bsd43/bin//chown $1 $2 $*; $1=[a-z0-9][a-z0-9]*
  48. #
  49. # permit development personnel to run install
  50. #
  51. inst    /usr/bin/install -o root -g system $1 $2; groups=devel
  52.         $2=/bin,/usr/bin,/usr/ucb,/usr/new,/usr/local
  53. #
  54. nfsmount    /etc/mount -o timeo=100,hard,inter $1 $2; 
  55.             groups=devel,operator 
  56.             $1=([a-zA-Z0-9_]*):(.*) $2=/remote/\1\2
  57.  
  58. foo    /bin/cat $1; users=koblas
  59.  
  60. shell    MAGIC_SHELL ; password environment 
  61.